summaryrefslogtreecommitdiffstats
path: root/net/rds/rds.h
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2009-10-30 18:45:14 +0100
committerJohn W. Linville <linville@tuxdriver.com>2009-10-30 20:50:25 +0100
commite9024a059f2c17fb2bfab212ee9d31511d7b8e57 (patch)
treedf915e4de67786102850f91e2b4deadf5fb10fe3 /net/rds/rds.h
parentmac80211: fix reason code output endianness (diff)
downloadlinux-e9024a059f2c17fb2bfab212ee9d31511d7b8e57.tar.xz
linux-e9024a059f2c17fb2bfab212ee9d31511d7b8e57.zip
libertas if_usb: Fix crash on 64-bit machines
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> Cc: stable@kernel.org Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rds/rds.h')
0 files changed, 0 insertions, 0 deletions