diff options
author | Maciej S. Szmigiero <mail@maciej.szmigiero.name> | 2017-01-18 21:31:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-25 11:46:42 +0100 |
commit | 61cd1b4cd1e8f7f7642ab64529d9bd52e8374641 (patch) | |
tree | a29a64583ef19a65b158eac81e8f345ad66cb9ad /drivers/w1/w1_io.c | |
parent | w1: omap_hdq: Free resources on error path (diff) | |
download | linux-61cd1b4cd1e8f7f7642ab64529d9bd52e8374641.tar.xz linux-61cd1b4cd1e8f7f7642ab64529d9bd52e8374641.zip |
w1: ds2490: USB transfer buffers need to be DMAable
ds2490 driver was doing USB transfers from / to buffers on a stack.
This is not permitted and made the driver non-working with vmapped stacks.
Since all these transfers are done under the same bus_mutex lock we can
simply use shared buffers in a device private structure for two most common
of them.
While we are at it, let's also fix a comparison between int and size_t in
ds9490r_search() which made the driver spin in this function if state
register get requests were failing.
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
Cc: stable <stable@vger.kernel.org>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1/w1_io.c')
0 files changed, 0 insertions, 0 deletions