]> git.baikalelectronics.ru Git - kernel.git/commit
p54spi: compensate firmware alignment bug in p54spi_rx
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 27 Mar 2009 04:50:53 +0000 (07:50 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:27 +0000 (16:54 -0400)
commit61edaa29cbd097b6634e45d90a710978d5b8030f
tree6203d7556d501769d2bd551afe25233a4b98cf6c
parentaa4b9ab15b5c87d0cb0e237d9c4f196456c7e2a4
p54spi: compensate firmware alignment bug in p54spi_rx

Firmware may insert up to 4 padding bytes after the lmac header,
but it does not amend the size of SPI data transfer.
Such packets has correct data size in header, thus referencing
past the end of allocated skb. Put extra 4 bytes to the end of the
received skb to compensate for this case.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c