diff options
author | Devin Heitmueller <dheitmueller@kernellabs.com> | 2017-04-21 16:28:37 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-27 22:08:01 (GMT) |
commit | 8bc51b4f2a42187b4386974ef92add94acafe135 (patch) | |
tree | 1127ff1e65596d544c9f8fe20fc3882ec529223a /drivers/usb | |
parent | 24a950e16eb54d42f25e4074bc00ee4a746877ac (diff) | |
download | linux-8bc51b4f2a42187b4386974ef92add94acafe135.tar.xz |
mxl111sf: Fix driver to use heap allocate buffers for USB messages
commit d90b336f3f652ff0441e631a06236f785581c8f7 upstream.
The recent changes in 4.9 to mandate USB buffers be heap allocated
broke this driver, which was allocating the buffers on the stack.
This resulted in the device failing at initialization.
Introduce dedicated send/receive buffers as part of the state
structure, and add a mutex to protect access to them.
Note: we also had to tweak the API to mxl111sf_ctrl_msg to pass
the pointer to the state struct rather than the device, since
we need it inside the function to access the buffers and the
mutex. This patch adjusts the callers to match the API change.
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Reported-by: Doug Lung <dlung0@gmail.com>
Cc: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
0 files changed, 0 insertions, 0 deletions