Re: [PATCH net-next] cxgb4: fix the error path of cxgb4_uld_register()

2018-10-18 Thread David Miller
From: Ganesh Goudar Date: Thu, 18 Oct 2018 19:34:19 +0530 > On multi adapter setup if the uld registration fails even on > one adapter, the allocated resources for the uld on all the > adapters are freed, rendering the functioning adapters unusable. > > This commit fixes the issue by freeing the

[PATCH net-next] cxgb4: fix the error path of cxgb4_uld_register()

2018-10-18 Thread Ganesh Goudar
On multi adapter setup if the uld registration fails even on one adapter, the allocated resources for the uld on all the adapters are freed, rendering the functioning adapters unusable. This commit fixes the issue by freeing the allocated resources only for the failed adapter. Signed-off-by: Gane