diff options
| author | Sumanth Korikkar <sumanthk@linux.ibm.com> | 2026-08-11 16:23:06 +0200 |
|---|---|---|
| committer | Heiko Carstens <hca@linux.ibm.com> | 2026-08-31 16:25:39 +0200 |
| commit | 439077c39d8f7108aea4dd8d4d819b9b864fe84c (patch) | |
| tree | 7bd66a168cb603322082ceed1b4790d44fd1446b /tools/perf/scripts/python/bin | |
| parent | a91a5c25a2c3f652178b591facc2395a7dbb59af (diff) | |
s390/diag324: Preserve -EBUSY return code
When diag324 reports -EBUSY, the error code is
overwritten by the result of copy_to_user() and put_user(). As a result,
the ioctl may incorrectly return success instead of -EBUSY.
Preserve the original diag324 return code and only return -EFAULT when
copying data to userspace fails.
Fixes: 90e6f191e1ee ("s390/diag324: Retrieve power readings via diag 0x324")
Signed-off-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
