diff options
| author | Jiasheng Jiang <[email protected]> | 2021-12-15 08:36:05 +0000 |
|---|---|---|
| committer | Benjamin Tissoires <[email protected]> | 2021-12-20 10:26:14 +0000 |
| commit | 13251ce1dd9bb525da2becb9b26fdfb94ca58659 (patch) | |
| tree | e8d8117d177ba7e85e64a429febf490e49922e8d /tools/perf/scripts/python/libxed.py | |
| parent | HID: holtek: fix mouse probing (diff) | |
| download | kernel-13251ce1dd9bb525da2becb9b26fdfb94ca58659.tar.gz kernel-13251ce1dd9bb525da2becb9b26fdfb94ca58659.zip | |
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: [email protected]
Signed-off-by: Jiasheng Jiang <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
