diff options
author | Eduard Zingerman <[email protected]> | 2024-08-20 03:23:50 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-08-21 11:03:00 -0700 |
commit | d0a29cdb6ef95d8a175e09ab2d1334271f047e60 (patch) | |
tree | 93fb99c3e2e58f88d4fcd8ae604c0d83831d40bb /drivers/usb/cdns3/cdns3-debug.h | |
parent | 7d41dad105b6667745f0984e386caf3289cef6db (diff) |
selftests/bpf: correctly move 'log' upon successful match
Suppose log="foo bar buz" and msg->substr="bar".
In such case current match processing logic would update 'log' as
follows: log += strlen(msg->substr); -> log += 3 -> log=" bar".
However, the intent behind the 'log' update is to make it point after
the successful match, e.g. to make log=" buz" in the example above.
Fixes: 4ef5d6af4935 ("selftests/bpf: no need to track next_match_pos in struct test_loader")
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions