From: Max Filippov Date: Fri, 27 Mar 2009 04:50:53 +0000 (+0300) Subject: p54spi: compensate firmware alignment bug in p54spi_rx X-Git-Tag: v2.6.31-rc1~330^2~568^2~174 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f201a87831af9458df1eda65941c955f2da87ed;p=pandora-kernel.git 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 Acked-by: Christian Lamparter Signed-off-by: John W. Linville --- Reading git-diff-tree failed