diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-09-17 12:57:47 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-17 14:00:51 +0100 |
commit | d853f1d3c900cc16758b12853375c1ab888fae65 (patch) | |
tree | 367a296728277f89e4f0d8c3040f2717ed82e1c3 /tools/lib/perf/core.c | |
parent | 6042d4348a341957d5eddadda2137c493a97131e (diff) | |
download | linux-d853f1d3c900cc16758b12853375c1ab888fae65.tar.bz2 |
octeontx2-af: Fix uninitialized variable val
In the case where the condition !is_rvu_otx2(rvu) is false variable
val is not initialized and can contain a garbage value. Fix this by
initializing val to zero and bit-wise or'ing in BIT_ULL(51) to val
for the true condition case of !is_rvu_otx2(rvu).
Addresses-Coverity: ("Uninitialized scalar variable")
Fixes: 4b5a3ab17c6c ("octeontx2-af: Hardware configuration for inline IPsec")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/lib/perf/core.c')
0 files changed, 0 insertions, 0 deletions