aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
diff options
context:
space:
mode:
authorJulian Ruess <[email protected]>2025-02-14 12:01:37 +0000
committerJakub Kicinski <[email protected]>2025-02-18 00:40:07 +0000
commit915e34d5ad35a6a9e56113f852ade4a730fb88f0 (patch)
tree6a0e4d9144e8b1900370eb2cf645122c136f91a9 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c
parentdrop_monitor: fix incorrect initialization order (diff)
downloadkernel-915e34d5ad35a6a9e56113f852ade4a730fb88f0.tar.gz
kernel-915e34d5ad35a6a9e56113f852ade4a730fb88f0.zip
s390/ism: add release function for struct device
According to device_release() in /drivers/base/core.c, a device without a release function is a broken device and must be fixed. The current code directly frees the device after calling device_add() without waiting for other kernel parts to release their references. Thus, a reference could still be held to a struct device, e.g., by sysfs, leading to potential use-after-free issues if a proper release function is not set. Fixes: 8c81ba20349d ("net/smc: De-tangle ism and smc device initialization") Reviewed-by: Alexandra Winter <[email protected]> Reviewed-by: Wenjia Zhang <[email protected]> Signed-off-by: Julian Ruess <[email protected]> Signed-off-by: Alexandra Winter <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions