diff options
| author | Pavel Skripkin <paskripkin@gmail.com> | 2021-06-03 19:39:11 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-10 12:41:36 +0200 |
| commit | b042e2b2039565eb8f0eb51c14fbe1ef463c8cd8 (patch) | |
| tree | ad61b12ffdc5fccd12076325c4a54b6a8c4bf27b /kernel/locking/mutex-debug.c | |
| parent | a3536dce5895f714d9eead8afb92629a3fb5875b (diff) | |
net: caif: fix memory leak in caif_device_notify
commit b53558a950a89824938e9811eddfc8efcd94e1bb upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions
