diff options
author | 2022-10-12 18:00:59 +0300 | |
---|---|---|
committer | 2022-10-13 09:33:57 -0700 | |
commit | 30e9672ac37f7b8b9e1379d25882798d8e76a96f (patch) | |
tree | 35e9be9e6be5a30d11ad3df7b4fdafa1d13ea1fd /scripts/generate_rust_analyzer.py | |
parent | kcm: avoid potential race in kcm_tx_work (diff) | |
download | wireguard-linux-30e9672ac37f7b8b9e1379d25882798d8e76a96f.tar.xz wireguard-linux-30e9672ac37f7b8b9e1379d25882798d8e76a96f.zip |
net: marvell: prestera: fix a couple NULL vs IS_ERR() checks
The __prestera_nexthop_group_create() function returns NULL on error
and the prestera_nexthop_group_get() returns error pointers. Fix these
two checks.
Fixes: 0a23ae237171 ("net: marvell: prestera: Add router nexthops ABI")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/Y0bWq+7DoKK465z8@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions