Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Suzuki K Poulose and committed by
Corey Minyard
3559c327 2cd0e544

+1
+1
drivers/char/ipmi/ipmi_si_platform.c
··· 444 444 struct platform_device *pdev = to_platform_device(dev); 445 445 446 446 platform_device_unregister(pdev); 447 + put_device(dev); 447 448 } 448 449 } 449 450