]> 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)
commit26a7a974d1df4df181cf7e74d2952496fa9dd527
treef12647418bda68d5c30bd285215c09f362ab6188
parent6699c26435c0f63c82502e3039e4c720f3847272
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: 781edc2e4515 ("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