]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix panic when attaching to ULD fail
authorVishal Kulkarni <vishal@chelsio.com>
Wed, 30 Oct 2019 14:47:57 +0000 (20:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 01:11:13 +0000 (18:11 -0700)
commitfc89cc358fb64e2429aeae0f37906126636507ec
treef12647418bda68d5c30bd285215c09f362ab6188
parentee8d153d46a3b98c064ee15c0c0a3bbf1450e5a1
cxgb4: fix panic when attaching to ULD fail

Release resources when attaching to ULD fail. Otherwise, data
mismatch is seen between LLD and ULD later on, which lead to
kernel panic when accessing resources that should not even
exist in the first place.

Fixes: 94cdb8bb993a ("cxgb4: Add support for dynamic allocation of resources for ULD")
Signed-off-by: Shahjada Abul Husain <shahjada@chelsio.com>
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c