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 <redacted>
Signed-off-by: Frederic Barrat <redacted>
---
drivers/misc/ocxl/file.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
From: Andrew Donnellan <hidden> Date: 2018-02-20 23:21:33
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 <redacted>
Signed-off-by: Frederic Barrat <redacted>
From: Michael Ellerman <hidden> Date: 2018-02-21 13:43:08
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 <redacted>
Signed-off-by: Frederic Barrat <redacted>
Acked-by: Andrew Donnellan <redacted>