Files
linux/drivers/net/ethernet
Tom Rix 6b663fa23c octeontx2-af: initialize action variable
[ Upstream commit 33b5bc9e70 ]

Clang static analysis reports this representative issue
rvu_npc.c:898:15: warning: Assigned value is garbage
  or undefined
  req.match_id = action.match_id;
               ^ ~~~~~~~~~~~~~~~

The initial setting of action is conditional on
 if (is_mcam_entry_enabled(...))
The later check of action.op will sometimes be garbage.
So initialize action.

Reduce setting of
  *(u64 *)&action = 0x00;
to
  *(u64 *)&action = 0;

Fixes: 967db3529e ("octeontx2-af: add support for multicast/promisc packet replication feature")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:53 +02:00
..
2022-03-08 19:12:41 +01:00
2022-03-08 19:12:41 +01:00
2022-03-08 19:12:41 +01:00
2021-12-29 12:28:44 +01:00
2021-11-18 19:16:32 +01:00
2021-10-13 13:28:35 -07:00