summaryrefslogtreecommitdiffstats
path: root/ipc/msg.c
diff options
context:
space:
mode:
authorPavel Skripkin <paskripkin@gmail.com>2021-06-03 18:39:11 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-04 00:05:07 +0200
commitb53558a950a89824938e9811eddfc8efcd94e1bb (patch)
treecffe51ae8ead138fa2648c1eef0166674d38f7fb /ipc/msg.c
parentnet: caif: add proper error handling (diff)
downloadlinux-b53558a950a89824938e9811eddfc8efcd94e1bb.tar.xz
linux-b53558a950a89824938e9811eddfc8efcd94e1bb.zip
net: caif: fix memory leak in caif_device_notify
In case of caif_enroll_dev() fail, allocated link_support won't be assigned to the corresponding structure. So simply free allocated pointer in case of error Fixes: 7c18d2205ea7 ("caif: Restructure how link caif link layer enroll") Cc: stable@vger.kernel.org Reported-and-tested-by: syzbot+7ec324747ce876a29db6@syzkaller.appspotmail.com Signed-off-by: Pavel Skripkin <paskripkin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc/msg.c')
0 files changed, 0 insertions, 0 deletions