]> git.baikalelectronics.ru Git - kernel.git/commit
net: cxgb4: fix return error value in t4_prep_fw
authorLi Heng <liheng40@huawei.com>
Mon, 29 Jun 2020 10:49:51 +0000 (18:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 22:53:25 +0000 (15:53 -0700)
commite52dbc11a8bdc6f011ff147619026a494aee7c8b
tree36324bdc77daf782377719eeb6fe07877569cc2f
parent952efd9df2ac4d4172f8811bce1ba776d2874d4c
net: cxgb4: fix return error value in t4_prep_fw

t4_prep_fw goto bye tag with positive return value when something
bad happened and which can not free resource in adap_init0.
so fix it to return negative value.

Fixes: d4ae5f6f3830 ("cxgb4: Add new scheme to update T4/T5 firmware")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Li Heng <liheng40@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c