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

2016-11-25 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit ceb75787bc75d0a7b88519ab8a68067ac690f55a upstream. Make sure to drop the reference taken by class_find_device() after opening the RTC device. Fixes:

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

2016-11-25 Thread Jiri Slaby
From: Johan Hovold 3.12-stable review patch. If anyone has any objections, please let me know. === commit ceb75787bc75d0a7b88519ab8a68067ac690f55a upstream. Make sure to drop the reference taken by class_find_device() after opening the RTC device. Fixes: 77437fd4e61f (pm: boot