From 0b25d55bc0fe81eb6d279a0de4996aa44158b627 Mon Sep 17 00:00:00 2001 From: Peter Marko Date: Sun, 27 Apr 2025 11:43:02 +0200 Subject: [PATCH] linux/cve-exclusion: do not shift first_affected Stop shifting first_affected if backport is indicated. This does not have effect on generated list, but makes the logic cleaner as it will not shift it to "first affected on our branch" and also make it behave like in defaultStatus==affected case. Cc: daniel.turull@ericsson.com (From OE-Core rev: dc1ecb69389dd79354084757ba6b9af0781afcc0) Signed-off-by: Peter Marko Signed-off-by: Richard Purdie --- meta/recipes-kernel/linux/generate-cve-exclusions.py | 1 - 1 file changed, 1 deletion(-) diff --git a/meta/recipes-kernel/linux/generate-cve-exclusions.py b/meta/recipes-kernel/linux/generate-cve-exclusions.py index 5c85c0db88..302ec8ebc9 100755 --- a/meta/recipes-kernel/linux/generate-cve-exclusions.py +++ b/meta/recipes-kernel/linux/generate-cve-exclusions.py @@ -69,7 +69,6 @@ def get_fixed_versions(cve_info, base_version): first_affected = v fixed = less_than if base_version < v and v < next_version: - first_affected = v fixed_backport = less_than return first_affected, fixed, fixed_backport