Re: [PATCH] net: mvpp2: Fix a memory leak in error handling path

2017-02-20 Thread David Miller
From: Christophe JAILLET Date: Sun, 19 Feb 2017 10:19:57 +0100 > if 'devm_kzalloc()' fails, we should release resources allocated so far, > just as done a few lines below. > > Signed-off-by: Christophe JAILLET Applied.

[PATCH] net: mvpp2: Fix a memory leak in error handling path

2017-02-19 Thread Christophe JAILLET
if 'devm_kzalloc()' fails, we should release resources allocated so far, just as done a few lines below. Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/marvell/mvpp2.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/dr