aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorAlexandre Belloni <[email protected]>2020-12-06 00:14:48 +0100
committerAlexandre Belloni <[email protected]>2020-12-16 00:33:33 +0100
commitf70cc33029fca3cf62bffb15102ea42eb4d097ac (patch)
tree7c32ee1f3517ddad58b76c9b854f76fc9fb8a59b /net/unix/sysctl_net_unix.c
parentce9af89392024f57247187afc345991b784f9bae (diff)
rtc: fix RTC removal
Since the rtc_register_device, removing an RTC device will end with a refcount_t: underflow; use-after-free warning since put_device is called twice in the device tear down path. Fixes: fdcfd854333b ("rtc: rework rtc_register_device() resource management") Signed-off-by: Alexandre Belloni <[email protected]> Reviewed-by: Bartosz Golaszewski <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions