summaryrefslogtreecommitdiffstats
path: root/drivers/amba
diff options
context:
space:
mode:
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>2019-12-17 02:01:16 +0100
committerDavid S. Miller <davem@davemloft.net>2019-12-18 06:58:37 +0100
commit951c6db954a1adefab492f6da805decacabbd1a7 (patch)
tree4f10faba719c2bcb1c89d8a5cde985090036fb10 /drivers/amba
parentMerge tag 'wireless-drivers-2019-12-17' of git://git.kernel.org/pub/scm/linux... (diff)
downloadlinux-951c6db954a1adefab492f6da805decacabbd1a7.tar.xz
linux-951c6db954a1adefab492f6da805decacabbd1a7.zip
sctp: fix memleak on err handling of stream initialization
syzbot reported a memory leak when an allocation fails within genradix_prealloc() for output streams. That's because genradix_prealloc() leaves initialized members initialized when the issue happens and SCTP stack will abort the current initialization but without cleaning up such members. The fix here is to always call genradix_free() when genradix_prealloc() fails, for output and also input streams, as it suffers from the same issue. Reported-by: syzbot+772d9e36c490b18d51d1@syzkaller.appspotmail.com Fixes: 2075e50caf5e ("sctp: convert to genradix") Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com> Tested-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/amba')
0 files changed, 0 insertions, 0 deletions