Re: [PATCH v4 11/11] liveupdate: fix return value on session allocation failure

Pratyush Yadav
2026-04-14T09:35:48Z

On Mon, Apr 13 2026, Pasha Tatashin wrote:

> When session allocation fails during deserialization, the global 'err'
> variable was not updated before returning. This caused subsequent calls
> to luo_session_deserialize() to incorrectly report success.
>
> Ensure 'err' is set to the error code from PTR_ERR(session). This
> ensures that an error is correctly returned to userspace when it
> attempts to open /dev/liveupdate in the new kernel if deserialization
> failed.
>
> Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>

Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>

[...]

--
Regards,
Pratyush Yadav