diff options
author | David Woodhouse <dwmw2@infradead.org> | 2009-10-30 17:45:14 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-11-09 16:22:26 -0800 |
commit | 1133a6e3632b5897f5a25084e38b221cb92f3eb6 (patch) | |
tree | 5087a4b59711526cab6a26b780c573e2ba5a2470 /drivers/cpuidle | |
parent | fb20e3f85ece49f23b72a7ad6aa441e004f4f3e7 (diff) |
libertas if_usb: Fix crash on 64-bit machines
commit e9024a059f2c17fb2bfab212ee9d31511d7b8e57 upstream.
On a 64-bit kernel, skb->tail is an offset, not a pointer. The libertas
usb driver passes it to usb_fill_bulk_urb() anyway, causing interesting
crashes. Fix that by using skb->data instead.
This highlights a problem with usb_fill_bulk_urb(). It doesn't notice
when dma_map_single() fails and return the error to its caller as it
should. In fact it _can't_ currently return the error, since it returns
void.
So this problem was showing up only at unmap time, after we'd already
suffered memory corruption by doing DMA to a bogus address.
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/cpuidle')
0 files changed, 0 insertions, 0 deletions