summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorSumanth Korikkar <sumanthk@linux.ibm.com>2026-08-11 16:23:06 +0200
committerHeiko Carstens <hca@linux.ibm.com>2026-08-31 16:25:39 +0200
commit439077c39d8f7108aea4dd8d4d819b9b864fe84c (patch)
tree7bd66a168cb603322082ceed1b4790d44fd1446b /tools/lib/python
parenta91a5c25a2c3f652178b591facc2395a7dbb59af (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/lib/python')
0 files changed, 0 insertions, 0 deletions