Re: [PATCH] PM / sleep: fix device reference leak in test_suspend

2016-11-02 Thread Pavel Machek
On Tue 2016-11-01 11:49:56, Johan Hovold wrote: > 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 Acked-by: Pavel Machek > ---

Re: [PATCH] PM / sleep: fix device reference leak in test_suspend

2016-11-02 Thread Pavel Machek
On Tue 2016-11-01 11:49:56, Johan Hovold wrote: > 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 Acked-by: Pavel Machek > --- > kernel/power/suspend_test.c |

[PATCH] PM / sleep: fix device reference leak in test_suspend

2016-11-01 Thread Johan Hovold
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 --- kernel/power/suspend_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH] PM / sleep: fix device reference leak in test_suspend

2016-11-01 Thread Johan Hovold
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 --- kernel/power/suspend_test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git