[PATCH v2 0/2] staging: rtl8712: fix uninit-value 'data' and 'mac'

Wang Cheng posted 2 patches 4 years ago
drivers/staging/rtl8712/usb_intf.c |  6 +++---
drivers/staging/rtl8712/usb_ops.c  | 27 ++++++++++++++++++---------
2 files changed, 21 insertions(+), 12 deletions(-)
[PATCH v2 0/2] staging: rtl8712: fix uninit-value 'data' and 'mac'
Posted by Wang Cheng 4 years ago
This is a v2 patch to fix KMSAN: uninit-value in r871xu_drv_init,
https://syzkaller.appspot.com/bug?id=3cd92b1d85428b128503bfa7a250294c9ae00bd8
Previous version and discussion could be seen here:
https://lore.kernel.org/all/20220414141223.qwiznrwgjyywngfg@ppc.localdomain/

Changelog v1->v2:
- Split to two patches.
- Add kmsan reports.
- Fix uninit-value 'data' by adding error checking and initialization
  rather than changing logic of r8712_usbctrl_vendorreq().

Wang Cheng (2):
  staging: rtl8712: fix uninit-value in usb_read8() and friends
  staging: rtl8712: fix uninit-value in r871xu_drv_init()

 drivers/staging/rtl8712/usb_intf.c |  6 +++---
 drivers/staging/rtl8712/usb_ops.c  | 27 ++++++++++++++++++---------
 2 files changed, 21 insertions(+), 12 deletions(-)

-- 
2.33.1