net: mvpp2: Fix a memory leak in error handling path
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 19 Feb 2017 09:19:57 +0000 (10:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 15:33:19 +0000 (10:33 -0500)
commit177c8d1c96eb9851210313922a12ae8b0b63d8c0
tree03cfbfd65d0ab6d088efc9a3510d13a121005b9d
parent3608b13ccc51d06e499dfe12b27f134de1286e28
net: mvpp2: Fix a memory leak in error handling path

if 'devm_kzalloc()' fails, we should release resources allocated so far,
just as done a few lines below.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c