Commit 90a8007
mlxsw: spectrum_router: Fix an IS_ERR() vs NULL check
The mlxsw_sp_crif_alloc() function returns NULL on error. It doesn't
return error pointers. Fix the check.
Fixes: 78126cf ("mlxsw: spectrum_router: Maintain CRIF for fallback loopback RIF")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 30c45b5 commit 90a8007
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10794 | 10794 | | |
10795 | 10795 | | |
10796 | 10796 | | |
10797 | | - | |
10798 | | - | |
| 10797 | + | |
| 10798 | + | |
10799 | 10799 | | |
10800 | 10800 | | |
10801 | 10801 | | |
| |||
0 commit comments