summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/a3000.c
diff options
context:
space:
mode:
authorWenwen Wang2019-08-14 18:23:13 +0200
committerDavid S. Miller2019-08-17 00:24:42 +0200
commitb9cbf8a64865b50fd0f4a3915fa00ac7365cdf8f (patch)
tree29e79b8c6d4b3d31f2abf3c5a513aa9a5dac113a /drivers/scsi/a3000.c
parentMAINTAINERS: r8169: Update path to the driver (diff)
downloadkernel-qcow2-linux-b9cbf8a64865b50fd0f4a3915fa00ac7365cdf8f.tar.gz
kernel-qcow2-linux-b9cbf8a64865b50fd0f4a3915fa00ac7365cdf8f.tar.xz
kernel-qcow2-linux-b9cbf8a64865b50fd0f4a3915fa00ac7365cdf8f.zip
lan78xx: Fix memory leaks
In lan78xx_probe(), a new urb is allocated through usb_alloc_urb() and saved to 'dev->urb_intr'. However, in the following execution, if an error occurs, 'dev->urb_intr' is not deallocated, leading to memory leaks. To fix this issue, invoke usb_free_urb() to free the allocated urb before returning from the function. Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/a3000.c')
0 files changed, 0 insertions, 0 deletions