]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdfe7213a4e1a78781a29fb483b2625593c3db707
treea33b856ca0d76a94f47169f7f9b454ce006008ae
parent9c7c151b32cabe738b5b22927cc0d30b7e62d201
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