mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
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> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| kexec_handover_debug.c | ||
| kexec_handover_debugfs.c | ||
| kexec_handover_internal.h | ||
| kexec_handover.c | ||
| luo_core.c | ||
| luo_file.c | ||
| luo_flb.c | ||
| luo_internal.h | ||
| luo_session.c | ||
| Makefile | ||