]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: fix error return code in mlx5e_alloc_rq()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 5 Jun 2018 02:42:56 +0000 (02:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 14:20:33 +0000 (10:20 -0400)
commit3ee6354b60c832345df683d7560587cef7b3982a
treee5702f968a95306f8519e89cc168308507fdce62
parent48febba5b2fc42284847ff2ad419124d7933b1fd
net/mlx5e: fix error return code in mlx5e_alloc_rq()

Fix to return error code -ENOMEM from the kvzalloc_node() error handling
case instead of 0, as done elsewhere in this function.

Fixes: 39a505dcdf9d ("net/mlx5e: RX, Enhance legacy Receive Queue memory scheme")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c