]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: fix error return code in cxgb4_set_hash_filter()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 2 Nov 2017 11:15:07 +0000 (11:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2017 05:23:54 +0000 (14:23 +0900)
commit3a5c8f156847da0e0ec026eee264967e24f22967
tree3c989cdc375c1819f7cfe7136abdac5060e2e2fb
parent450a2e76005db5677fb024d61ecfe0dda0f1c212
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: 8d82304a0d36 ("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>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c