]> 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)
commit5a72627a7938397f3bce81fcec55d7241a7ee159
treef12647418bda68d5c30bd285215c09f362ab6188
parent4aff5ab38e8adc0b8b083d644b6b1f396fe85fed
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: 670bddc26792 ("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