diff options
| author | Hailong Liu <[email protected]> | 2018-07-20 08:31:56 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-07-21 08:45:24 +0200 |
| commit | e7de2590f18a272e63732b9d519250d1b522b2c4 (patch) | |
| tree | e0150900b0cebaae53db1a1dbd19ccafce7ded39 /tools/perf/scripts/python | |
| parent | fbb5858c1467ef8feccc910ac9e9f529186a9f9d (diff) | |
uio: fix wrong return value from uio_mmap()
uio_mmap has multiple fail paths to set return value to nonzero then
goto out. However, it always returns *0* from the *out* at end, and
this will mislead callers who check the return value of this function.
Fixes: 57c5f4df0a5a0ee ("uio: fix crash after the device is unregistered")
CC: Xiubo Li <[email protected]>
Signed-off-by: Hailong Liu <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Jiang Biao <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions