ocxl: Fix potential bad errno on irq allocation

Michael Ellerman patch-notifications at ellerman.id.au
Thu Feb 22 00:43:08 AEDT 2018


On Fri, 2018-02-16 at 13:01:18 UTC, 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 <dan.carpenter at oracle.com>
> Signed-off-by: Frederic Barrat <fbarrat at linux.vnet.ibm.com>
> Acked-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/423688abd9ab654044bddd82eb5983

cheers


More information about the Linuxppc-dev mailing list