Skip to content

Commit 3559c32

Browse files
Suzuki K Poulosecminyard
authored andcommitted
drivers: ipmi: Drop device reference
Drop the reference to a device found via bus_find_device() Cc: Corey Minyard <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Signed-off-by: Suzuki K Poulose <[email protected]> Message-Id: <[email protected]> [Moved the put_device() to after the platform_device_unregister(), for better style.] Signed-off-by: Corey Minyard <[email protected]>
1 parent 2cd0e54 commit 3559c32

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/char/ipmi/ipmi_si_platform.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ void ipmi_remove_platform_device_by_name(char *name)
444444
struct platform_device *pdev = to_platform_device(dev);
445445

446446
platform_device_unregister(pdev);
447+
put_device(dev);
447448
}
448449
}
449450

0 commit comments

Comments
 (0)