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 <minyard@acm.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Message-Id: <1559577023-558-3-git-send-email-suzuki.poulose@arm.com> [Moved the put_device() to after the platform_device_unregister(), for better style.] Signed-off-by: Corey Minyard <cminyard@mvista.com>
1 parent 2cd0e54 commit 3559c32

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎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)