diff options
| author | Pasha Tatashin <pasha.tatashin@soleen.com> | 2026-04-15 22:37:38 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-04-27 15:54:23 +0300 |
| commit | 0562b572ce591858749fc2f9477567e7e5c5d99f (patch) | |
| tree | fdc047a55a38f58e2e00a5bcde3a33550dca0f51 /include/linux/timerqueue.h | |
| parent | 602655067e25030cb68c32a355ba1007a76a0c5a (diff) | |
| download | linux-0562b572ce591858749fc2f9477567e7e5c5d99f.tar.xz | |
liveupdate: fix return value on session allocation failure
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.
Link: https://lore.kernel.org/20260415193738.515491-1-pasha.tatashin@soleen.com
Signed-off-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Pratyush Yadav (Google) <pratyush@kernel.org>
Cc: David Matlack <dmatlack@google.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Samiullah Khawaja <skhawaja@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
