diff options
| author | Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> | 2024-11-13 19:11:18 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-09 13:33:45 +0100 |
| commit | 83d32ae6895a75c8470ee71a7f8dc770f00e9184 (patch) | |
| tree | 46b179f35dba9acf2ec6aac0a9f92e3f7425047b /scripts/patch-kernel | |
| parent | 4be7ad1f9cc22af312a7e127d5824cdccb26ccf6 (diff) | |
| download | linux-83d32ae6895a75c8470ee71a7f8dc770f00e9184.tar.gz linux-83d32ae6895a75c8470ee71a7f8dc770f00e9184.tar.bz2 linux-83d32ae6895a75c8470ee71a7f8dc770f00e9184.zip | |
ARC: bpf: Correct conditional check in 'check_jmp_32'
[ Upstream commit 7dd9eb6ba88964b091b89855ce7d2a12405013af ]
The original code checks 'if (ARC_CC_AL)', which is always true since
ARC_CC_AL is a constant. This makes the check redundant and likely
obscures the intention of verifying whether the jump is conditional.
Updates the code to check cond == ARC_CC_AL instead, reflecting the intent
to differentiate conditional from unconditional jumps.
Suggested-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Acked-by: Shahab Vahedi <list+bpf@vahedi.org>
Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
