diff options
author | Frederic Barrat <fbarrat@linux.vnet.ibm.com> | 2018-02-16 16:01:18 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-02-21 03:21:01 +0300 |
commit | 423688abd9ab654044bddd82eb5983189eb9630d (patch) | |
tree | 02a48b03af86049be78b3ef41a7737a8ed1e3493 /drivers/cpufreq/pmac64-cpufreq.c | |
parent | 521ca5a9859a870e354d1a6b84a6ff4c07bbceb0 (diff) | |
download | linux-423688abd9ab654044bddd82eb5983189eb9630d.tar.xz |
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>
Diffstat (limited to 'drivers/cpufreq/pmac64-cpufreq.c')
0 files changed, 0 insertions, 0 deletions