]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Ensure that buffers are NULL after free
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 6 Feb 2018 23:25:23 +0000 (17:25 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Feb 2018 02:55:52 +0000 (21:55 -0500)
commitbadca34ebe6f3a9ca53a03dfcde4360a0a25fc12
treee0354ccb0dbd5010fec741eea1838adc516a4cfc
parenta86918477967463f1c5316e3b4831028cbf181cc
ibmvnic: Ensure that buffers are NULL after free

This change will guard against a double free in the case that the
buffers were previously freed at some other time, such as during
a device reset. It resolves a kernel oops that occurred when changing
the VNIC device's MTU.

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