diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-06-03 19:39:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-10 12:41:36 +0200 |
commit | cc302e30a504e6b60a9ac8df7988646f46cd0294 (patch) | |
tree | c8980faec3b6929b420dd863232e3a39c650a6fd /sound | |
parent | b042e2b2039565eb8f0eb51c14fbe1ef463c8cd8 (diff) |
net: caif: fix memory leak in cfusbl_device_notify
commit 7f5d86669fa4d485523ddb1d212e0a2d90bd62bb 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: 7ad65bf68d70 ("caif: Add support for CAIF over CDC NCM USB interface")
Cc: stable@vger.kernel.org
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 'sound')
0 files changed, 0 insertions, 0 deletions