summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2020-01-04 14:15:02 +0800
committerDavid S. Miller <davem@davemloft.net>2020-01-06 13:28:37 -0800
commitbe7a7729207797476b6666f046d765bdf9630407 (patch)
treed0309e77c401f93e57dae61ec51b52fe00c037d4 /drivers/net
parenta7869e5f9174f246b662b2db6390bc128a351388 (diff)
downloadlinux-be7a7729207797476b6666f046d765bdf9630407.tar.bz2
sctp: free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY
This patch is to fix a memleak caused by no place to free cmd->obj.chunk for the unprocessed SCTP_CMD_REPLY. This issue occurs when failing to process a cmd while there're still SCTP_CMD_REPLY cmds on the cmd seq with an allocated chunk in cmd->obj.chunk. So fix it by freeing cmd->obj.chunk for each SCTP_CMD_REPLY cmd left on the cmd seq when any cmd returns error. While at it, also remove 'nomem' label. Reported-by: syzbot+107c4aff5f392bf1517f@syzkaller.appspotmail.com Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions