summaryrefslogtreecommitdiff
path: root/net/rose/rose_dev.c
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2009-03-27 07:50:53 +0300
committerJohn W. Linville <linville@tuxdriver.com>2009-04-23 00:54:27 +0400
commit9f201a87831af9458df1eda65941c955f2da87ed (patch)
tree6203d7556d501769d2bd551afe25233a4b98cf6c /net/rose/rose_dev.c
parent488829f1b141858944a24fd793220fa1d52cd9a6 (diff)
downloadlinux-9f201a87831af9458df1eda65941c955f2da87ed.tar.xz
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>
Diffstat (limited to 'net/rose/rose_dev.c')
0 files changed, 0 insertions, 0 deletions