diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-06-03 19:39:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-04 01:05:07 +0300 |
commit | 7f5d86669fa4d485523ddb1d212e0a2d90bd62bb (patch) | |
tree | e555a90f8de170ffbb714f99537d929e4d6d2214 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b53558a950a89824938e9811eddfc8efcd94e1bb (diff) | |
download | linux-7f5d86669fa4d485523ddb1d212e0a2d90bd62bb.tar.xz |
net: caif: fix memory leak in cfusbl_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: 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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions