summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAhmed S. Darwish <ahmed.darwish@valeo.com>2015-02-26 10:20:11 -0500
committerLuis Henriques <luis.henriques@canonical.com>2015-03-23 15:16:50 +0000
commit8c27234f21d39456633cf12570cda29f895bef02 (patch)
tree24d18fcb11db854685f5398b9303cef433574c1a /kernel
parent96336fb939094ea3e6624ac1e0e5ce10a035147e (diff)
can: kvaser_usb: Avoid double free on URB submission failures
commit deb2701cf704a2fd03a8b598bf73df3edb08818d upstream. Upon a URB submission failure, the driver calls usb_free_urb() but then manually frees the URB buffer by itself. Meanwhile usb_free_urb() has alredy freed out that transfer buffer since we're the only code path holding a reference to this URB. Remove two of such invalid manual free(). Signed-off-by: Ahmed S. Darwish <ahmed.darwish@valeo.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions