diff options
author | Colin Ian King <[email protected]> | 2021-04-06 17:40:02 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2021-04-07 16:58:33 +0100 |
commit | 14e13b1ce92ea278fc0d7bb95b340b46cff624ab (patch) | |
tree | 1c120c255c71b89afe3cd0dc7be207f48c53fccd /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 394409aafd017adfcffd075595cb01cc456a9327 (diff) |
regmap-irq: Fix dereference of a potentially null d->virt_buf
The clean up of struct d can potentiallly index into a null array
d->virt_buf causing errorenous pointer dereferencing issues on
kfree calls. Fix this by adding a null check on d->virt_buf before
attempting to traverse the array to kfree the objects.
Addresses-Coverity: ("Dereference after null check")
Fixes: 4c5014456305 ("regmap-irq: Introduce virtual regs to handle more config regs")
Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions