summaryrefslogtreecommitdiff
path: root/drivers/usb/input/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAnas Iqbal <mohd.abd.6602@gmail.com>2026-03-15 10:51:37 +0000
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-03-19 14:43:43 -0400
commit31148a7be723aa9f2e8fbd62424825ab8d577973 (patch)
tree1c3db5707bd1f94b1869bd1c1bd3d3c0efeb3cdf /drivers/usb/input/git@git.tavy.me:linux.git
parentb6807cfc195ef99e1ac37b2e1e60df40295daa8c (diff)
Bluetooth: hci_ll: Fix firmware leak on error path
Smatch reports: drivers/bluetooth/hci_ll.c:587 download_firmware() warn: 'fw' from request_firmware() not released on lines: 544. In download_firmware(), if request_firmware() succeeds but the returned firmware content is invalid (no data or zero size), the function returns without releasing the firmware, resulting in a resource leak. Fix this by calling release_firmware() before returning when request_firmware() succeeded but the firmware content is invalid. Fixes: 371805522f87 ("bluetooth: hci_uart: add LL protocol serdev driver support") Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Anas Iqbal <mohd.abd.6602@gmail.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/usb/input/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions