Geliang Tang
5f72cad65c
efi/efi_test: Use memdup_user() helper
...
Use memdup_user() helper instead of open-coding to simplify the code.
Signed-off-by: Geliang Tang <[email protected] >
Signed-off-by: Matt Fleming <[email protected] >
Signed-off-by: Ard Biesheuvel <[email protected] >
Acked-by: Ivan Hu <[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] >
2017-06-05 17:50:42 +02:00
Ivan Hu
c208ed916e
efi/efi_test: Use memdup_user() as a cleanup
...
Fix coccicheck warning which recommends to use memdup_user().
This patch fixes the following coccicheck warnings:
drivers/firmware/efi/test/efi_test.c:269:8-15: WARNING opportunity for memdup_user
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] >
2016-10-18 17:11:19 +02:00
Ivan Hu
9c30a21993
efi/efi_test: Fix uninitialized variable 'rv'
...
Fix minor issue found by CoverityScan:
520 kfree(name);
CID 1358932 (#1 of 1): Uninitialized scalar variable (UNINIT)17.
uninit_use: Using uninitialized value rv.
521 return rv;
522}
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] >
2016-10-18 17:11:18 +02:00
Ivan Hu
46b9b71353
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] >
2016-10-18 17:11:17 +02:00
Wei Yongjun
10714dd37a
efi: Remove unused include of <linux/version.h>
...
Signed-off-by: Wei Yongjun <[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] >
2016-10-18 17:11:16 +02:00
Ivan Hu
ff6301dabc
efi: Add efi_test driver for exporting UEFI runtime service interfaces
...
This driver is used by the Firmware Test Suite (FWTS) for testing the UEFI
runtime interfaces readiness of the firmware.
This driver exports UEFI runtime service interfaces into userspace,
which allows to use and test UEFI runtime services provided by the
firmware.
This driver uses the efi.<service> function pointers directly instead of
going through the efivar API to allow for direct testing of the UEFI
runtime service interfaces provided by the firmware.
Details for FWTS are available from,
<https://wiki.ubuntu.com/FirmwareTestSuite >
Signed-off-by: Ivan Hu <[email protected] >
Cc: joeyli <[email protected] >
Cc: Ricardo Neri <[email protected] >
Cc: Ard Biesheuvel <[email protected] >
Signed-off-by: Matt Fleming <[email protected] >
2016-09-09 16:08:53 +01:00