diff options
| author | Dave Penkler <[email protected]> | 2025-05-02 07:09:41 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-05-02 07:28:54 +0000 |
| commit | 4e77d3ec7c7c0d9535ccf1138827cb9bb5480b9b (patch) | |
| tree | 35f2de1f020391e26985c9d9de8c38810bbdf60b /rust/helpers/vmalloc.c | |
| parent | usb: usbtmc: Fix erroneous wait_srq ioctl return (diff) | |
| download | kernel-4e77d3ec7c7c0d9535ccf1138827cb9bb5480b9b.tar.gz kernel-4e77d3ec7c7c0d9535ccf1138827cb9bb5480b9b.zip | |
usb: usbtmc: Fix erroneous generic_read ioctl return
wait_event_interruptible_timeout returns a long
The return value was being assigned to an int causing an integer overflow
when the remaining jiffies > INT_MAX which resulted in random error
returns.
Use a long return value, converting to the int ioctl return only on error.
Fixes: bb99794a4792 ("usb: usbtmc: Add ioctl for vendor specific read")
Cc: [email protected]
Signed-off-by: Dave Penkler <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
