diff options
author | Dongliang Mu <mudongliangabcd@gmail.com> | 2022-09-03 18:00:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-07 16:23:48 +0200 |
commit | a8113da51cf822f90e93436442db5095e20ff6d9 (patch) | |
tree | 7d25e6179845f396fcb2a4627622a4dd9953ad79 /MAINTAINERS | |
parent | f57004b9d96755cd6a243b51c267be4016b4563c (diff) | |
download | lwn-a8113da51cf822f90e93436442db5095e20ff6d9.tar.gz lwn-a8113da51cf822f90e93436442db5095e20ff6d9.zip |
usb: misc: uss720: fix uninitialized variable rlen
Smatch reports the following error: uninitialized symbol 'rlen'
drivers/usb/misc/uss720.c:514 parport_uss720_epp_write_data() error
drivers/usb/misc/uss720.c:575 parport_uss720_ecp_write_data() error
drivers/usb/misc/uss720.c:593 parport_uss720_ecp_read_data() error
drivers/usb/misc/uss720.c:626 parport_uss720_write_compat() error
The root cause is, the failure of usb_bulk_msg leads to the
uninitialized variable rlen in printk function.
Fix this by initializing rlen with zero.
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20220903100004.2874741-1-dzm91@hust.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'MAINTAINERS')
0 files changed, 0 insertions, 0 deletions