summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWenwen Wang <wenwen@cs.uga.edu>2019-08-14 11:23:13 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-10 10:35:18 +0100
commita4234e27ed053eee92c83bd91cf10adb8bab2154 (patch)
tree92086e0bd624fa040efd8e17c7068eab7bb053c7 /fs
parent96ece5798677ae26b3a1c9d315b6ccd9836e1287 (diff)
downloadlinux-stable-a4234e27ed053eee92c83bd91cf10adb8bab2154.tar.gz
linux-stable-a4234e27ed053eee92c83bd91cf10adb8bab2154.tar.bz2
linux-stable-a4234e27ed053eee92c83bd91cf10adb8bab2154.zip
lan78xx: Fix memory leaks
[ Upstream commit b9cbf8a64865b50fd0f4a3915fa00ac7365cdf8f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions