Skip to content
Commit 36010ff6 authored by Marcel Holtmann's avatar Marcel Holtmann
Browse files

[Bluetooth] Fix double frees on error paths of btusb and bpa10x drivers



The transfer buffer of an URB will be automatically freed when using
the URB_FREE_BUFFER transfer_flag. So the extra calls to kfree() will
cause a double free.

Reported-by: default avatarJustin Mattock <justinmattock@gmail.com>
Signed-off-by: default avatarRabin Vincent <rabin@rab.in>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 94aca1da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment