]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PM / sleep: fix device reference leak in test_suspend
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 10:49:56 +0000 (11:49 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 24 Nov 2016 15:23:57 +0000 (16:23 +0100)
commit270202d09fb6cdfbe89d19948c068b4487286693
tree944fc5f41c4861f0fcc8e5cf014b80b6edee79bf
parentb0c22e761d054ac018cbac545cee7b2144939bd3
PM / sleep: fix device reference leak in test_suspend

commit ceb75787bc75d0a7b88519ab8a68067ac690f55a upstream.

Make sure to drop the reference taken by class_find_device() after
opening the RTC device.

Fixes: 77437fd4e61f (pm: boot time suspend selftest)
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
kernel/power/suspend_test.c