Re: [EXT] [PATCH] qed: Add cleanup in qed_slowpath_start()

2019-08-20 Thread Wenwen Wang
S. Miller ; open > > list:QLOGIC QL4xxx ETHERNET DRIVER ; open list > > > > Subject: [EXT] [PATCH] qed: Add cleanup in qed_slowpath_start() > > > > External Email > > > > -- > > If qed_mc

RE: [EXT] [PATCH] qed: Add cleanup in qed_slowpath_start()

2019-08-13 Thread Sudarsana Reddy Kalluru
> -Original Message- > From: Wenwen Wang > Sent: Tuesday, August 13, 2019 3:35 PM > To: Wenwen Wang > Cc: Ariel Elior ; GR-everest-linux-l2 l...@marvell.com>; David S. Miller ; open > list:QLOGIC QL4xxx ETHERNET DRIVER ; open list > > Subject: [EX

[PATCH] qed: Add cleanup in qed_slowpath_start()

2019-08-13 Thread Wenwen Wang
If qed_mcp_send_drv_version() fails, no cleanup is executed, leading to memory leaks. To fix this issue, redirect the execution to the label 'err3' before returning the error. Signed-off-by: Wenwen Wang --- drivers/net/ethernet/qlogic/qed/qed_main.c | 2 +- 1 file changed, 1 insertion(+), 1