Re: [PATCH] platform/x86: samsung-galaxybook: Fix problematic pointer cast

From: Ilpo Järvinen
Date: Mon Dec 29 2025 - 06:55:44 EST


On Sun, 28 Dec 2025 22:41:31 +0100, Armin Wolf wrote:

> 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.
>
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86: samsung-galaxybook: Fix problematic pointer cast
commit: d37cd54ebeac37a763fbf303ed25f8a6e98328ff

--
i.