diff options
author | Gavrilov Ilia | 2023-10-16 14:08:59 +0000 |
---|---|---|
committer | David S. Miller | 2023-10-18 10:12:30 +0100 |
commit | 1d30162f35c7a73fc2f8cdcdcdbd690bedb99d1a (patch) | |
tree | b14e96c13e116afbf528e85fc0297cf44ce686bc /fs/mbcache.c | |
parent | f6c7b42243565a4ed8bc9d6f681b6d0cae026abc (diff) |
net: pktgen: Fix interface flags printing
Device flags are displayed incorrectly:
1) The comparison (i == F_FLOW_SEQ) is always false, because F_FLOW_SEQ
is equal to (1 << FLOW_SEQ_SHIFT) == 2048, and the maximum value
of the 'i' variable is (NR_PKT_FLAG - 1) == 17. It should be compared
with FLOW_SEQ_SHIFT.
2) Similarly to the F_IPSEC flag.
3) Also add spaces to the print end of the string literal "spi:%u"
to prevent the output from merging with the flag that follows.
Found by InfoTeCS on behalf of Linux Verification Center
(linuxtesting.org) with SVACE.
Fixes: 99c6d3d20d62 ("pktgen: Remove brute-force printing of flags")
Signed-off-by: Gavrilov Ilia <Ilia.Gavrilov@infotecs.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions