OSDN Git Service

ibmvnic: Fix IRQ mapping disposal in error path
authorThomas Falcon <tlfalcon@linux.ibm.com>
Wed, 29 Jul 2020 21:36:32 +0000 (16:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 22:35:55 +0000 (15:35 -0700)
commit27a2145d6f826d1fad9de06ac541b1016ced3427
treef50140e1c475709d4ec6af5767548408b8fd4104
parent5d104a5f325e16ef92ffc05b93eabdf6f0818c9f
ibmvnic: Fix IRQ mapping disposal in error path

RX queue IRQ mappings are disposed in both the TX IRQ and RX IRQ
error paths. Fix this and dispose of TX IRQ mappings correctly in
case of an error.

Fixes: ea22d51a7831 ("ibmvnic: simplify and improve driver probe function")
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c