aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorStuart Hayes <stuart.w.hayes@gmail.com>2025-06-09 13:46:55 -0500
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-06-10 10:44:37 +0300
commita2f32c7467e843727f20cae0e9b1545e1504a977 (patch)
treed6343eb82c3b6954ebbfa74cf947b5abcb514be8
parentplatform/x86/amd: pmf: Simplify error flow in amd_pmf_init_smart_pc() (diff)
downloadwireguard-linux-a2f32c7467e843727f20cae0e9b1545e1504a977.tar.xz
wireguard-linux-a2f32c7467e843727f20cae0e9b1545e1504a977.zip
platform/x86: dell_rbu: Fix lock context warning
Fix a sparse lock context warning. Signed-off-by: Stuart Hayes <stuart.w.hayes@gmail.com> Link: https://lore.kernel.org/r/20250609184659.7210-2-stuart.w.hayes@gmail.com Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
-rw-r--r--drivers/platform/x86/dell/dell_rbu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/dell/dell_rbu.c b/drivers/platform/x86/dell/dell_rbu.c
index e30ca325938c..7b019fb72e86 100644
--- a/drivers/platform/x86/dell/dell_rbu.c
+++ b/drivers/platform/x86/dell/dell_rbu.c
@@ -91,7 +91,7 @@ static void init_packet_head(void)
rbu_data.imagesize = 0;
}
-static int create_packet(void *data, size_t length)
+static int create_packet(void *data, size_t length) __must_hold(&rbu_data.lock)
{
struct packet_data *newpacket;
int ordernum = 0;