3c59x: use netdev_alloc_skb
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 25 Jul 2008 19:07:22 +0000 (12:07 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 7 Aug 2008 06:22:15 +0000 (02:22 -0400)
commit9a5d3414202a21ed4b053657345ea0fd492d513a
treed29ea012a7c924bda9a624476f1c3ad093642744
parentb11f8d8cc3bb2fa6fa55286babc1a5ebb2e932c4
3c59x: use netdev_alloc_skb

Fix possible bug where end of receive buffer could be overwritten.
The allocation needs to allow for the reserved space. This would only happen
if device received packet greater than Ethernet standard MTU.

Change this driver to use netdev_alloc_skb rather than setting skb->dev
directly. For the initial allocation it doesn't need to be GFP_ATOMIC.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/3c59x.c