diff options
author | Li Heng <liheng40@huawei.com> | 2020-06-29 18:49:51 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 15:53:25 -0700 |
commit | 8a259e6b73ad8181b0b2ef338b35043433db1075 (patch) | |
tree | 36324bdc77daf782377719eeb6fe07877569cc2f /net | |
parent | e708e2bd55c921f5bb554fa5837d132a878951cf (diff) | |
download | lwn-8a259e6b73ad8181b0b2ef338b35043433db1075.tar.gz lwn-8a259e6b73ad8181b0b2ef338b35043433db1075.zip |
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: 16e47624e76b ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions