cxgb4: fix error return code in cxgb4_set_hash_filter()
Fix to return a negative error code from thecxgb4_alloc_atid()
error handling case instead of 0.
Fixes: 12b276fbf6
("cxgb4: add support to create hash filters")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-By: Kumar Sanghvi <kumaras@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
eba0c929d1
commit
a882d20cdb
1 changed files with 3 additions and 1 deletions
|
@ -1110,8 +1110,10 @@ static int cxgb4_set_hash_filter(struct net_device *dev,
|
|||
}
|
||||
|
||||
atid = cxgb4_alloc_atid(t, f);
|
||||
if (atid < 0)
|
||||
if (atid < 0) {
|
||||
ret = atid;
|
||||
goto free_smt;
|
||||
}
|
||||
|
||||
iconf = adapter->params.tp.ingress_config;
|
||||
if (iconf & VNIC_F) {
|
||||
|
|
Loading…
Reference in a new issue