aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/compaction-times.py
diff options
context:
space:
mode:
authorAnant Thazhemadam <[email protected]>2020-12-07 07:16:06 +0100
committerMauro Carvalho Chehab <[email protected]>2021-10-08 13:54:43 +0200
commit899a61a3305d49e8a712e9ab20d0db94bde5929f (patch)
tree5980ac0299b878b7724e79a888f83340c211a91e /tools/perf/scripts/python/compaction-times.py
parentcefdc9510a16f59de6ff82ed90c841545ec0aa13 (diff)
media: usb: dvd-usb: fix uninit-value bug in dibusb_read_eeprom_byte()
In dibusb_read_eeprom_byte(), if dibusb_i2c_msg() fails, val gets assigned an value that's not properly initialized. Using kzalloc() in place of kmalloc() for the buffer fixes this issue, as the val can now be set to 0 in the event dibusb_i2c_msg() fails. Reported-by: [email protected] Tested-by: [email protected] Signed-off-by: Anant Thazhemadam <[email protected]> Signed-off-by: Sean Young <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/compaction-times.py')
0 files changed, 0 insertions, 0 deletions