summaryrefslogtreecommitdiff
path: root/scripts/objdump-func
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2025-12-29 00:41:31 +0300
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-12-29 13:55:50 +0300
commitd37cd54ebeac37a763fbf303ed25f8a6e98328ff (patch)
tree8770d48ede8fdf2194ba853efa3365b8a5859cf1 /scripts/objdump-func
parent00c22b1e84288bf0e17ab1e7e59d75237cf0d0dc (diff)
downloadlinux-d37cd54ebeac37a763fbf303ed25f8a6e98328ff.tar.xz
platform/x86: samsung-galaxybook: Fix problematic pointer cast
A user reported that reading the charge threshold on his device results in very strange values (like 78497792) being returned. The reason for this seems to be the fact that the driver casts the int pointer to an u8 pointer, leaving the last 3 bytes of the destination uninitialized. Fix this by using a temporary variable instead. Cc: stable@vger.kernel.org Fixes: 56f529ce4370 ("platform/x86: samsung-galaxybook: Add samsung-galaxybook driver") Reported-by: Gianni Ceccarelli <dakkar@thenautilus.net> Closes: https://lore.kernel.org/platform-driver-x86/20251228115556.14362d66@thenautilus.net/ Tested-by: Gianni Ceccarelli <dakkar@thenautilus.net> Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20251228214217.35972-1-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'scripts/objdump-func')
0 files changed, 0 insertions, 0 deletions