diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2024-02-15 08:53:08 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-22 02:01:54 +0100 |
commit | 9990889be14288d4f1743e4768222d5032a79c27 (patch) | |
tree | 502a80a13e71457ed46f1d21e5a3eb396b9a6b99 /Documentation/mm | |
parent | Merge branch 'tls-fixes-for-record-type-handling-with-peek' (diff) | |
download | linux-9990889be14288d4f1743e4768222d5032a79c27.tar.xz linux-9990889be14288d4f1743e4768222d5032a79c27.zip |
net: mctp: put sock on tag allocation failure
We may hold an extra reference on a socket if a tag allocation fails: we
optimistically allocate the sk_key, and take a ref there, but do not
drop if we end up not using the allocated key.
Ensure we're dropping the sock on this failure by doing a proper unref
rather than directly kfree()ing.
Fixes: de8a6b15d965 ("net: mctp: add an explicit reference from a mctp_sk_key to sock")
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/ce9b61e44d1cdae7797be0c5e3141baf582d23a0.1707983487.git.jk@codeconstruct.com.au
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/mm')
0 files changed, 0 insertions, 0 deletions