Re: [PATCH] ocxl: Fix potential bad errno on irq allocation

2018-02-20 Thread Andrew Donnellan
On 17/02/18 00:01, Frederic Barrat wrote: 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 Signed-off-by: Fred

[PATCH] ocxl: Fix potential bad errno on irq allocation

2018-02-16 Thread Frederic Barrat
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 Signed-off-by: Frederic Barrat --- drivers/misc/ocxl/file.c |