Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 00f1edbb authored by Neeraj Upadhyay's avatar Neeraj Upadhyay Committed by Ivaylo Georgiev
Browse files

PM: sleep: wakeup: Skip wakeup_source_sysfs_remove() if device is not there



Skip wakeup_source_sysfs_remove() to fix a NULL pinter dereference via
ws->dev, if the wakeup source is unregistered before registering the
wakeup class from device_add().

Change-Id: I4cde880f3a5bfe7cb71180c71b74a44bf0fcff51
Fixes: 2ca3d1ecb8c4 ("PM / wakeup: Register wakeup class kobj after device is added")
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
[ rjw: Subject & changelog, white space ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Git-commit: 87de6594dc45dbf6819f3e0ef92f9331c5a9444c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarIvaylo Georgiev <irgeorgiev@codeaurora.org>
parent 1ba1a557
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment