summaryrefslogtreecommitdiff
path: root/include/uapi/linux/android/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDeepakkumar Karn <dkarn@redhat.com>2025-12-16 20:43:05 +0530
committerPaolo Abeni <pabeni@redhat.com>2025-12-23 12:12:34 +0100
commit12cab1191d9890097171156d06bfa8d31f1e39c8 (patch)
tree70c03927754ce283987b6a96c9b88d4e43100c78 /include/uapi/linux/android/git@git.tavy.me:linux.git
parentdff94bc6072b420f39bd2213c0f349fd7a09363c (diff)
net: usb: rtl8150: fix memory leak on usb_submit_urb() failure
In async_set_registers(), when usb_submit_urb() fails, the allocated async_req structure and URB are not freed, causing a memory leak. The completion callback async_set_reg_cb() is responsible for freeing these allocations, but it is only called after the URB is successfully submitted and completes (successfully or with error). If submission fails, the callback never runs and the memory is leaked. Fix this by freeing both the URB and the request structure in the error path when usb_submit_urb() fails. Reported-by: syzbot+8dd915c7cb0490fc8c52@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=8dd915c7cb0490fc8c52 Fixes: 4d12997a9bb3 ("drivers: net: usb: rtl8150: concurrent URB bugfix") Signed-off-by: Deepakkumar Karn <dkarn@redhat.com> Link: https://patch.msgid.link/20251216151304.59865-2-dkarn@redhat.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/uapi/linux/android/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions