Staging: hv: handle skb allocation failure
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 10 Mar 2010 01:42:17 +0000 (17:42 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:34 +0000 (11:35 -0700)
commit9495c282baf53ec7bfffcb9dd9f40cb10d4240e0
treea33b856ca0d76a94f47169f7f9b454ce006008ae
parentb852fdcefc782b6751f96a8ea09471efd844b6bf
Staging: hv: handle skb allocation failure

Some fixes to receive handling:
  * Dieing with assertion failure when running out of memory is not ok
  * Use newer alloc function to get aligned skb
  * Dropped statistic is supposed to be incremented only by
    driver it was responsible for the drop.

Compile tested only.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/netvsc_drv.c