summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorSubbaraya Sundeep <sbhatta@marvell.com>2023-11-29 08:41:48 +0300
committerDavid S. Miller <davem@davemloft.net>2023-12-01 15:19:02 +0300
commit830139e7b6911266a84a77e1f18abf758995cc89 (patch)
treea17183da3c42e465e99a7282897c2d28e8b62514 /kernel
parent9572c949385aa2ef10368287c439bcb7935137c8 (diff)
downloadlinux-830139e7b6911266a84a77e1f18abf758995cc89.tar.xz
octeontx2-af: Check return value of nix_get_nixlf before using nixlf
If a NIXLF is not attached to a PF/VF device then nix_get_nixlf function fails and returns proper error code. But npc_get_default_entry_action does not check it and uses garbage value in subsequent calls. Fix this by cheking the return value of nix_get_nixlf. Fixes: 967db3529eca ("octeontx2-af: add support for multicast/promisc packet replication feature") Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions