aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMa Ke <[email protected]>2024-06-25 13:03:14 +0000
committerPaolo Abeni <[email protected]>2024-06-27 10:35:58 +0000
commit1864b8224195d0e43ddb92a8151f54f6562090cc (patch)
treea3354945c7344a4756deaf1e4f8e13c6ebc83b6c /net/unix/af_unix.c
parentMerge branch 'af_unix-fix-bunch-of-msg_oob-bugs-and-add-new-tests' (diff)
downloadkernel-1864b8224195d0e43ddb92a8151f54f6562090cc.tar.gz
kernel-1864b8224195d0e43ddb92a8151f54f6562090cc.zip
net: mana: Fix possible double free in error handling path
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function adev_release calls kfree(madev). We shouldn't call kfree(madev) again in the error handling path. Set 'madev' to NULL. Fixes: a69839d4327d ("net: mana: Add support for auxiliary device") Signed-off-by: Ma Ke <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions