Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: caif: fix memory leak in cfusbl_device_notify
commit 7f5d866 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: 7ad65bf ("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]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Lee Jones <[email protected]> Change-Id: Ie37c25b654157b11be63e7c9f9a09e8db1c1b0ab
- Loading branch information