]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
mlxsw: spectrum: Add missing error code on allocation failure
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 3 Oct 2017 10:53:41 +0000 (13:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Oct 2017 17:26:58 +0000 (10:26 -0700)
commitb5c7d4e54c9ab830e5c03f92377fe15cbae64d0d
tree5715556cda939e6cde16c3888a8d6177920a411f
parentb508e0b6e47c85a095ef056f3de6ba9d396c490c
mlxsw: spectrum: Add missing error code on allocation failure

We accidentally return success if the kmalloc_array() call fails.

Fixes: 0e14c7777acb ("mlxsw: spectrum: Add the multicast routing hardware logic")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_mr_tcam.c