aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorPavel Skripkin <[email protected]>2021-06-03 19:39:35 +0300
committerDavid S. Miller <[email protected]>2021-06-03 15:05:07 -0700
commit7f5d86669fa4d485523ddb1d212e0a2d90bd62bb (patch)
treee555a90f8de170ffbb714f99537d929e4d6d2214 /lib/mpi/mpi-sub-ui.c
parentb53558a950a89824938e9811eddfc8efcd94e1bb (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: [email protected] Signed-off-by: Pavel Skripkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions