]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Check for NULL skb's in NAPI poll routine
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 20 Feb 2018 02:12:57 +0000 (20:12 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Feb 2018 19:31:11 +0000 (14:31 -0500)
commit3cd46967aea8201eb97313dc148beb2ed9028999
tree2da2d624cb62195bb7530579a7b9f7b1fd679d8b
parentfc0fdfff5c7a282fb194a99b5bebab65cf3d7563
ibmvnic: Check for NULL skb's in NAPI poll routine

After introduction of commit af95b9c7cb94, there were some instances of
RX queue entries from a previous session (before the device was closed
and reopened) returned to the NAPI polling routine. Since the corresponding
socket buffers were freed, this resulted in a panic on reopen. Include
a check for a NULL skb here to avoid this.

Fixes: af95b9c7cb94 ("ibmvnic: Clean RX pool buffers during device close")
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c