mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 18:37:58 -04:00
hinic: uninitialized variable in hinic_api_cmd_init()
We never set the error code in this function.
Fixes: eabf0fad81 ("net-next/hinic: Initialize api cmd resources")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
43cee2d246
commit
256fbe1112
@@ -941,6 +941,7 @@ int hinic_api_cmd_init(struct hinic_api_cmd_chain **chain,
|
||||
if (IS_ERR(chain[chain_type])) {
|
||||
dev_err(&pdev->dev, "Failed to create chain %d\n",
|
||||
chain_type);
|
||||
err = PTR_ERR(chain[chain_type]);
|
||||
goto err_create_chain;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user