diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2022-11-10 22:47:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-11-11 12:28:42 +0300 |
commit | dd65a243a915ca319ed5fee9161a168c836fa2f2 (patch) | |
tree | f1e7f9faafa7dc1e86b544940e0ea8035eadb65e /drivers/net/ethernet/broadcom/Kconfig | |
parent | 8836402d4b208b2211fc60538ff45d6bb3b73a64 (diff) | |
download | linux-dd65a243a915ca319ed5fee9161a168c836fa2f2.tar.xz |
usb/usbip: Fix v_recv_cmd_submit() to use PIPE_BULK define
Fix v_recv_cmd_submit() to use PIPE_BULK define instead of hard coded
values. This also fixes the following signed integer overflow error
reported by cppcheck. This is not an issue since pipe is unsigned int.
However, this change improves the code to use proper define.
drivers/usb/usbip/vudc_rx.c:152:26: error: Signed integer overflow for expression '3<<30'. [integerOverflow]
urb_p->urb->pipe &= ~(3 << 30);
In addition, add a build time check for PIPE_BULK != 3 as the code path
depends on PIPE_BULK = 3.
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20221110194738.38514-1-skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/broadcom/Kconfig')
0 files changed, 0 insertions, 0 deletions