diff options
author | Pawel Laszczak <pawell@cadence.com> | 2022-01-12 06:32:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-01-26 13:59:20 +0100 |
commit | 03db9289b5ab59437e42a111a34545a7cedb5190 (patch) | |
tree | 29a9f29d48d2fd7b898dfa35d6635f045c750609 /arch/s390/lib/test_modules_helpers.c | |
parent | a102f07e4edf0f1cf06bf9825ab10e26a29dd945 (diff) |
usb: cdnsp: fix cdnsp_decode_trb function to properly handle ret value
Variable ret in function cdnsp_decode_trb is initialized but not
used. To fix this compiler warning patch adds checking whether the
data buffer has not been overflowed.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20220112053237.14309-1-pawell@gli-login.cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/s390/lib/test_modules_helpers.c')
0 files changed, 0 insertions, 0 deletions