efi/efi_test: Fix missing pending status update in getwakeuptime
Subsystems (2)
Ivan Hu
maintainerPATCH 1/1 efi/efi_test: Fix missing pending status update in getwakeuptime
The pending status was not being passed to user space, leading to false test alarms when using the pending status. This patch ensures that the pending status is correctly updated and exposed to user space when calling getwakeuptime, preventing incorrect handling of the pending status.
Signed-off-by Ivan Hu <[email protected]>
--- drivers/firmware/efi/test/efi_test.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/firmware/efi/test/efi_test.c +4 -0
@@ -361,6 +361,10 @@ static long efi_runtime_get_waketime(unsigned long arg) getwakeuptime.enabled))return -EFAULT ; +if (getwakeuptime.pending &&put_user (pending, + getwakeuptime.pending)) +return -EFAULT ; +if (getwakeuptime.time) {if (copy_to_user (getwakeuptime.time, &efi_time,sizeof (efi_time_t)))
Signature · 1 line
2.34.1
Quoted 7 lines · Ivan Hu
The pending status was not being passed to user space, leading to false test alarms when using the pending status. This patch ensures that the pending status is correctly updated and exposed to user space when calling getwakeuptime, preventing incorrect handling of the pending status.
Quoted 5 lines
Signed-off-by Ivan Hu <[email protected]>--- drivers/firmware/efi/test/efi_test.c | 4 ++++ 1 file changed, 4 insertions(+)
Queued up now, thanks.
Quoted 18 lines
drivers/firmware/efi/test/efi_test.c +4
-1@@ -361,6 +361,10 @@ static long efi_runtime_get_waketime(unsigned long arg) getwakeuptime.enabled))return -EFAULT ; +if (getwakeuptime.pending &&put_user (pending, + getwakeuptime.pending)) +return -EFAULT ; +if (getwakeuptime.time) {if (copy_to_user (getwakeuptime.time, &efi_time,sizeof (efi_time_t))) --2.34.1