linux/drivers/misc/ocxl
Frederic Barrat 423688abd9 ocxl: Fix potential bad errno on irq allocation
Fix some issues found by a static checker:

When allocating an AFU interrupt, if the driver cannot copy the output
parameters to userland, the errno value was not set to EFAULT

Remove a (now) useless cast.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-02-21 11:21:01 +11:00
..
afu_irq.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
config.c ocxl: Add a kernel API for other opencapi drivers 2018-01-24 11:42:59 +11:00
context.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
file.c ocxl: Fix potential bad errno on irq allocation 2018-02-21 11:21:01 +11:00
Kconfig ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
link.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
main.c
Makefile ocxl: Add Makefile and Kconfig 2018-01-24 11:42:59 +11:00
ocxl_internal.h ocxl: Add a kernel API for other opencapi drivers 2018-01-24 11:42:59 +11:00
pasid.c
pci.c
sysfs.c
trace.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
trace.h ocxl: Add trace points 2018-01-24 11:42:59 +11:00