]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Cleanup failure path in ibmvnic_open
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Thu, 30 Mar 2017 06:49:29 +0000 (02:49 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Mar 2017 22:58:43 +0000 (15:58 -0700)
commit730e3b35167acf8d2baefefee05e8ddb8a289efc
treebe622d0e5ef5809297d279f6c12e1a11b6fc0c16
parent1cfd26fd96d7c33519663ba9a84ddd810cc4d278
ibmvnic: Cleanup failure path in ibmvnic_open

Now that ibmvnic_release_resources will clean up all of our resources
properly, even if they were not allocated, we can just call this
for failues in ibmvnic_open.

This patch also moves the ibmvnic_release_resources() routine up
in the file to avoid creating a forward declaration ad re-names it to
drop the ibmvnic prefix.

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