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
..
2017-11-15 18:21:04 -08:00
2018-01-29 10:59:24 -08:00
2018-02-02 10:01:04 -08:00
2017-11-17 16:10:01 -08:00
2017-11-28 16:33:03 +01:00
2018-02-02 10:01:04 -08:00