s390/qeth: fix early exit from error path
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Wed, 18 Oct 2017 15:40:17 +0000 (17:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2017 12:11:04 +0000 (13:11 +0100)
commit83cf79a2fec3cf499eb6cb9eb608656fc2a82776
tree496a9229963dca9f62275675fd722cd9ce89bf4a
parent025d0dfcc1dd90e2489ab9c500c8f5efbe3ce82f
s390/qeth: fix early exit from error path

When the allocation of the addr buffer fails, we need to free
our refcount on the inetdevice before returning.

Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l3_main.c