From: Mitsuhiro Kimura Date: Thu, 27 Nov 2014 11:34:00 +0000 (+0900) Subject: sh_eth: Fix skb alloc size and alignment adjust rule. X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~45^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d6a949c62f123569fb355b6ec7f314b76f93735;p=pandora-kernel.git sh_eth: Fix skb alloc size and alignment adjust rule. In the current driver, allocation size of skb does not care the alignment adjust after allocation. And also, in the current implementation, buffer alignment method by sh_eth_set_receive_align function has a bug that this function displace buffer start address forcedly when the alignment is corrected. In the result, tail of the skb will exceed allocated area and kernel panic will be occurred. This patch fix this issue. Signed-off-by: Mitsuhiro Kimura Signed-off-by: Yoshihiro Kaneko Signed-off-by: David S. Miller --- Reading git-diff-tree failed