Fix potential NULL pointer dereference in vboot_kernel.c

In the unlikely case that params is not set or the LoadKernelParams
structure is not initialized correctly, LoadKernel will exit before
initializing shcall. However, in LoadKernelExit it will be used to
stire the function's return code, thus potentially dereferencing a
NULL pointer.

TEST=compile tested.

Change-Id: I691c6b5054d8f77296de86834b3125de06e0e398
Tested-by: Stefan Reinauer <>
Reviewed-by: Bill Richardson <>
Reviewed-by: Randall Spangler <>
Commit-Ready: Stefan Reinauer <>
1 file changed