summaryrefslogtreecommitdiff
path: root/drivers/clk/clk-stm32f4.c
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2023-02-18 12:53:17 +0100
committerHans de Goede <hdegoede@redhat.com>2023-03-07 11:37:27 +0100
commit001f61c4688f1dad18cfaa35ae364b35fb3cd66c (patch)
treeda49d21a57d9e9c78c5f965c2126bf887c414a8a /drivers/clk/clk-stm32f4.c
parent24efcdf03d85bb73df0ba99f69c8d238e7ada0e5 (diff)
platform/x86: dell-ddv: Fix cache invalidation on resume
If one or both sensor buffers could not be initialized, either due to missing hardware support or due to some error during probing, the resume handler will encounter undefined behaviour when attempting to lock buffers then protected by an uninitialized or destroyed mutex. Fix this by introducing a "active" flag which is set during probe, and only invalidate buffers which where flaged as "active". Tested on a Dell Inspiron 3505. Fixes: 3b7eeff93d29 ("platform/x86: dell-ddv: Add hwmon support") Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20230218115318.20662-1-W_Armin@gmx.de Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/clk/clk-stm32f4.c')
0 files changed, 0 insertions, 0 deletions