linux/drivers/base/regmap
Colin Ian King 14e13b1ce9
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: 4c50144563 ("regmap-irq: Introduce virtual regs to handle more config regs")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210406164002.430221-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-04-07 16:58:33 +01:00
..
Kconfig
Makefile
internal.h
regcache-flat.c
regcache-lzo.c
regcache-rbtree.c
regcache.c
regmap-ac97.c
regmap-debugfs.c regmap: set debugfs_name to NULL after it is freed 2021-03-10 12:20:54 +00:00
regmap-i2c.c
regmap-i3c.c
regmap-irq.c regmap-irq: Fix dereference of a potentially null d->virt_buf 2021-04-07 16:58:33 +01:00
regmap-mmio.c
regmap-sccb.c
regmap-sdw-mbq.c regmap: sdw-mbq: use MODULE_LICENSE("GPL") 2021-02-11 10:54:00 +05:30
regmap-sdw.c
regmap-slimbus.c
regmap-spi-avmm.c
regmap-spi.c
regmap-spmi.c
regmap-w1.c
regmap.c
trace.h