ibmvnic: Unmap longer term buffer before free
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 19 Apr 2017 17:44:41 +0000 (13:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:33:52 +0000 (13:33 -0400)
commit59af56c25bc34d4e98820c694d48fd5145fb6e4f
tree30a4279d483aeb7ae4af50ca487516703a12d2c8
parent993a82b0ff03b356c0001561ca7035b02c5e7bae
ibmvnic: Unmap longer term buffer before free

Make sure we unregister long term buffers from the adapter
prior to DMA unmapping it and freeing the buffer. Failure
to do so could result in a DMA to a now invalid address.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c