usb: musb: tusb6010: uninitialized data in tusb_fifo_write_unaligned()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 16 Sep 2021 13:57:37 +0000 (16:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 08:23:38 +0000 (10:23 +0200)
commit2a6992e7a05677bfcfd7e60498fe52831fbb3da7
tree3d376e595f02288421fcd2c28b492316d993d7a4
parentb6b7cebeb6b729b9bdc34805eab03d85a4a267b3
usb: musb: tusb6010: uninitialized data in tusb_fifo_write_unaligned()

commit 517c7bf99bad3d6b9360558414aae634b7472d80 upstream.

This is writing to the first 1 - 3 bytes of "val" and then writing all
four bytes to musb_writel().  The last byte is always going to be
garbage.  Zero out the last bytes instead.

Fixes: 550a7375fe72 ("USB: Add MUSB and TUSB support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210916135737.GI25094@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/tusb6010.c