]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/net/82596.c
82596: do not panic on out of memory
authorKulikov Vasiliy <segooon@gmail.com>
Fri, 9 Jul 2010 02:25:22 +0000 (02:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jul 2010 02:42:06 +0000 (19:42 -0700)
commitf163530407280485034c836d908b49787a8189bc
tree0f03dbed022025a5f4d78d5e2b84b8656873c138
parent344dbf1073d1cea179ed0831547cab2b7ea4ea27
82596: do not panic on out of memory

If dev_alloc_skb() failed then free already allocated skbs.
remove_rx_bufs() can be called multiple times, so set rbd->skb to NULL
to avoid double free. remove_rx_bufs() was moved upwards to be seen by
init_rx_bufs().

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/82596.c