summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorJulian Ruess <julianr@linux.ibm.com>2025-02-14 13:01:37 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-02-27 04:30:17 -0800
commit0505ff2936f166405d81d0d454a81d9c14124344 (patch)
tree2ecffe29786b0e60be87211148dcaf47591e6aa5 /scripts/stackusage
parent4da5a3547d69480caad478ef5d84682b69e1c5a6 (diff)
downloadlinux-0505ff2936f166405d81d0d454a81d9c14124344.tar.gz
linux-0505ff2936f166405d81d0d454a81d9c14124344.tar.bz2
linux-0505ff2936f166405d81d0d454a81d9c14124344.zip
s390/ism: add release function for struct device
[ Upstream commit 915e34d5ad35a6a9e56113f852ade4a730fb88f0 ] 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 <wintera@linux.ibm.com> Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com> Signed-off-by: Julian Ruess <julianr@linux.ibm.com> Signed-off-by: Alexandra Winter <wintera@linux.ibm.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250214120137.563409-1-wintera@linux.ibm.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions