mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
efi/efi_test: Fix uninitialized variable 'datasize'
Fix minor issue found by CoverityScan: CID 1358931 (#1 of 1): Uninitialized scalar variable (UNINIT)9. uninit_use: Using uninitialized value datasize. 199 prev_datasize = datasize; 200 status = efi.get_variable(name, vd, at, dz, data); Signed-off-by: Ivan Hu <[email protected]> Signed-off-by: Matt Fleming <[email protected]> Cc: Ard Biesheuvel <[email protected]> Cc: Ivan Khoronzhuk <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
This commit is contained in:
parent
0709a008c9
commit
46b9b71353
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ static long efi_runtime_get_variable(unsigned long arg)
|
|||
{
|
||||
struct efi_getvariable __user *getvariable_user;
|
||||
struct efi_getvariable getvariable;
|
||||
unsigned long datasize, prev_datasize, *dz;
|
||||
unsigned long datasize = 0, prev_datasize, *dz;
|
||||
efi_guid_t vendor_guid, *vd = NULL;
|
||||
efi_status_t status;
|
||||
efi_char16_t *name = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue