]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: gadget: f_hid: fixed NULL pointer dereference
authorPhil Elwell <phil@raspberrypi.com>
Fri, 23 Jul 2021 15:59:30 +0000 (18:59 +0300)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 20 Sep 2021 13:43:00 +0000 (15:43 +0200)
commit4c660ff9e17fa411847d2d4d22751a54676cc761
tree2fda2197936d87c724d1aedacacc3e941a4ebeb4
parentfe537860948e42ec1903770db7d1862cb3b4e576
usb: gadget: f_hid: fixed NULL pointer dereference

BugLink: https://bugs.launchpad.net/bugs/1942123
commit 2867652e4766360adf14dfda3832455e04964f2a upstream.

Disconnecting and reconnecting the USB cable can lead to crashes
and a variety of kernel log spam.

The problem was found and reproduced on the Raspberry Pi [1]
and the original fix was created in Raspberry's own fork [2].

Link: https://github.com/raspberrypi/linux/issues/3870
Link: https://github.com/raspberrypi/linux/commit/a6e47d5f4efbd2ea6a0b6565cd2f9b7bb217ded5
Signed-off-by: Maxim Devaev <mdevaev@gmail.com>
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210723155928.210019-1-mdevaev@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/gadget/function/f_hid.c