summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-asus.c
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2021-12-15 11:36:05 +0300
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2021-12-20 13:26:14 +0300
commit13251ce1dd9bb525da2becb9b26fdfb94ca58659 (patch)
treee8d8117d177ba7e85e64a429febf490e49922e8d /drivers/hid/hid-asus.c
parent93a2207c254ca102ebbdae47b00f19bbfbfa7ecd (diff)
downloadlinux-13251ce1dd9bb525da2becb9b26fdfb94ca58659.tar.xz
HID: potential dereference of null pointer
The return value of devm_kzalloc() needs to be checked. To avoid hdev->dev->driver_data to be null in case of the failure of alloc. Fixes: 14c9c014babe ("HID: add vivaldi HID driver") Cc: stable@vger.kernel.org Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Link: https://lore.kernel.org/r/20211215083605.117638-1-jiasheng@iscas.ac.cn
Diffstat (limited to 'drivers/hid/hid-asus.c')
0 files changed, 0 insertions, 0 deletions