diff options
| author | Ahmed S. Darwish <ahmed.darwish@valeo.com> | 2015-02-26 10:20:11 -0500 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2015-03-23 15:16:50 +0000 |
| commit | 8c27234f21d39456633cf12570cda29f895bef02 (patch) | |
| tree | 24d18fcb11db854685f5398b9303cef433574c1a /kernel | |
| parent | 96336fb939094ea3e6624ac1e0e5ce10a035147e (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
