OSDN Git Service

net: mana: Fix a memory leak in an error handling path in 'mana_create_txq()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Jun 2021 13:43:28 +0000 (15:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 21:40:08 +0000 (14:40 -0700)
commitb90788459cd6d140171b046f0b37fad341ade0a3
tree1206a5861b34b6c2bea44fdc18c2840a46c95d12
parent4f35dabb51f68f8cc6d3289870762feb417993ea
net: mana: Fix a memory leak in an error handling path in 'mana_create_txq()'

If this test fails we must free some resources as in all the other error
handling paths of this function.

Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microsoft/mana/mana_en.c