Skip to content

Commit 8d1b1e7

Browse files
arjunvynipadathgregkh
authored andcommitted
cxgb4: Fix queue free path of ULD drivers
[ Upstream commit d7cb444 ] Setting sge_uld_rxq_info to NULL in free_queues_uld(). We are referencing sge_uld_rxq_info in cxgb_up(). This will fix a panic when interface is brought up after a ULDq creation failure. Fixes: 94cdb8b (cxgb4: Add support for dynamic allocation of resources for ULD) Signed-off-by: Arjun Vynipadath <[email protected]> Signed-off-by: Casey Leedom <[email protected]> Signed-off-by: Ganesh Goudhar <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1d1646c commit 8d1b1e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static void free_queues_uld(struct adapter *adap, unsigned int uld_type)
342342
{
343343
struct sge_uld_rxq_info *rxq_info = adap->sge.uld_rxq_info[uld_type];
344344

345+
adap->sge.uld_rxq_info[uld_type] = NULL;
345346
kfree(rxq_info->rspq_id);
346347
kfree(rxq_info->uldrxq);
347348
kfree(rxq_info);

0 commit comments

Comments
 (0)