WSL2-Linux-Kernel/include/uapi/misc
Rajaravi Krishna Katta 4ca57d5139 habanalabs: fix resetting args in wait for CS IOCTL
In wait for CS IOCTL code, the driver resets the incoming args structure
before returning to the user, regardless of the return value of the
IOCTL.

In case the IOCTL returns EINTR, resetting the args will result in error
in case the userspace will repeat the ioctl call immediately (which is
the behavior in the hl-thunk userspace library).

The solution is to reset the args only if the driver returns success (0)
as a return value for the IOCTL.

Signed-off-by: Rajaravi Krishna Katta <rkatta@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2021-09-29 12:18:48 +03:00
..
uacce crypto: hisilicon/qm - add queue isolation support for Kunpeng930 2021-03-26 20:15:58 +11:00
cxl.h
fastrpc.h misc: fastrpc: add ioctl for attaching to sensors pd 2020-09-16 17:30:37 +02:00
habanalabs.h habanalabs: fix resetting args in wait for CS IOCTL 2021-09-29 12:18:48 +03:00
ocxl.h ocxl: do not use C++ style comments in uapi header 2019-06-14 15:35:53 +10:00
pvpanic.h misc: pvpanic: add crash loaded event 2020-01-14 15:07:37 +01:00
xilinx_sdfec.h misc: xilinx_sdfec: Add stats & status ioctls 2019-08-15 17:54:38 +02:00