]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Correct crq and resource releasing
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Wed, 19 Apr 2017 17:45:04 +0000 (13:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Apr 2017 17:33:53 +0000 (13:33 -0400)
commit77c000b3c267625fc26602981c298defcf083c94
treeee595f34cc94a1dad56a865d909e3dd3df305866
parent171d60c0cac33f549eb758b61c96eb8a0865884d
ibmvnic: Correct crq and resource releasing

We should not be releasing the crq's when calling close for the
adapter, these need to remain open to facilitate operations such
as updating the mac address. The crq's should be released in the
adpaters remove routine.

Additionally, we need to call release_reources from remove. This
corrects the scenario of trying to remove an adapter that has only
been probed.

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