summaryrefslogtreecommitdiffstats
path: root/net/sctp/socket.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2020-03-31 01:27:02 +0200
committerDavid S. Miller <davem@davemloft.net>2020-03-31 05:14:22 +0200
commit3902baf9abfa320b21e38fe206d66d5e6688e721 (patch)
treeb2aeca37ae751a6dd186a1b95df15dd875171826 /net/sctp/socket.c
parentMerge branch 'stmmac-Add-additional-EHL-PCI-info-and-PCI-ID' (diff)
downloadlinux-3902baf9abfa320b21e38fe206d66d5e6688e721.tar.xz
linux-3902baf9abfa320b21e38fe206d66d5e6688e721.zip
netdevsim: dev: Fix memory leak in nsim_dev_take_snapshot_write
In case memory resources for dummy_data were allocated, release them before return. Addresses-Coverity-ID: 1491997 ("Resource leak") Fixes: 7ef19d3b1d5e ("devlink: report error once U32_MAX snapshot ids have been used") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/socket.c')
0 files changed, 0 insertions, 0 deletions