commit | 7f5d86669fa4d485523ddb1d212e0a2d90bd62bb | [log] [tgz] |
---|---|---|
author | Pavel Skripkin <paskripkin@gmail.com> | Thu Jun 03 19:39:35 2021 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Jun 03 15:05:07 2021 -0700 |
tree | e555a90f8de170ffbb714f99537d929e4d6d2214 | |
parent | b53558a950a89824938e9811eddfc8efcd94e1bb [diff] |
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>