]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: dont touch blocked freelist bitmap after free
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 25 Aug 2021 21:29:42 +0000 (02:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 09:23:24 +0000 (10:23 +0100)
commit43fed4d48d325e0a61dc2638a84da972fbb1087b
treeda467b8383398f35cdaaf788b3e630c01760268e
parent38d57551ddabec878add10ff8eb18f4b63fff2da
cxgb4: dont touch blocked freelist bitmap after free

When adapter init fails, the blocked freelist bitmap is already freed
up and should not be touched. So, move the bitmap zeroing closer to
where it was successfully allocated. Also handle adapter init failure
unwind path immediately and avoid setting up RDMA memory windows.

Fixes: 5b377d114f2b ("cxgb4: Add debugfs facility to inject FL starvation")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c