summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorPasha Tatashin <pasha.tatashin@soleen.com>2026-04-15 19:37:38 +0000
committerAndrew Morton <akpm@linux-foundation.org>2026-04-27 05:54:23 -0700
commit0562b572ce591858749fc2f9477567e7e5c5d99f (patch)
treefdc047a55a38f58e2e00a5bcde3a33550dca0f51 /scripts/stackusage
parent602655067e25030cb68c32a355ba1007a76a0c5a (diff)
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 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions