diff options
| author | Dave Penkler <dpenkler@gmail.com> | 2025-05-02 10:09:41 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-06-04 15:36:55 +0300 |
| commit | 72ae71167e87607ece0cf83c80b8c85be5bb67bd (patch) | |
| tree | 7dcae0e3c79f19121e6caea9610a56d0156e65eb /include/uapi | |
| parent | 5f157004f281f8c77c07ce049d56592b0a5d3fc0 (diff) | |
| download | linux-72ae71167e87607ece0cf83c80b8c85be5bb67bd.tar.xz | |
usb: usbtmc: Fix erroneous generic_read ioctl return
commit 4e77d3ec7c7c0d9535ccf1138827cb9bb5480b9b upstream.
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: stable@vger.kernel.org
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250502070941.31819-4-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
