]> git.baikalelectronics.ru Git - kernel.git/commit
mv643xx_eth: potential null dereference
authorDan Carpenter <error27@gmail.com>
Fri, 23 Jul 2010 01:05:05 +0000 (01:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2010 20:05:12 +0000 (13:05 -0700)
commitb5d22bdc0845f71c880bc68a86827837149a647f
tree5a2c5d4d8281f1adba05ddce4312d355e0572015
parentf88f36f314fd5ceb64b22ae002609bfcae738eee
mv643xx_eth: potential null dereference

We assume that "pd" can be null on the previous line, and throughout the
function so we should check it here as well.  This was introduced by
6fde3c3026e8 "mv643xx_eth: use sw csum for big packets"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c