diff options
| author | Joe Hattori <[email protected]> | 2024-12-18 04:09:35 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2024-12-18 19:47:23 +0000 |
| commit | b317268368546d6401af788648668f82e3ba1bd3 (patch) | |
| tree | 5c8fb4f69d3feac913f7fe6a0dadfa93101c5d86 /net/unix/sysctl_net_unix.c | |
| parent | PM: sleep: sysfs: don't include 'pm_wakeup.h' directly (diff) | |
| download | kernel-b317268368546d6401af788648668f82e3ba1bd3.tar.gz kernel-b317268368546d6401af788648668f82e3ba1bd3.zip | |
PM: wakeup: implement devm_device_init_wakeup() helper
Some drivers that enable device wakeup fail to properly disable it
during their cleanup, which results in a memory leak.
To address this, introduce devm_device_init_wakeup(), a managed variant
of device_init_wakeup(dev, true).
With this managed helper, wakeup functionality will be automatically
disabled when the device is released, ensuring a more reliable cleanup
process.
This need for this addition arose during a previous discussion [1].
Link: https://lore.kernel.org/linux-rtc/[email protected]/ [1]
Suggested-by: Alexandre Belloni <[email protected]>
Signed-off-by: Joe Hattori <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
