kernel_samsung_a53x/drivers/base/regmap
Johan Hovold b57d059379 regmap: fix NULL deref on lookup
commit c6df843348d6b71ea986266c12831cb60c2cf325 upstream.

Not all regmaps have a name so make sure to check for that to avoid
dereferencing a NULL pointer when dev_get_regmap() is used to lookup a
named regmap.

Fixes: e84861fec32d ("regmap: dev_get_regmap_match(): fix string comparison")
Cc: stable@vger.kernel.org      # 5.8
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231006082104.16707-1-johan+linaro@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-08 11:26:08 +01:00
..
internal.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache-flat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache-lzo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache-rbtree.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regcache.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-ac97.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-i3c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-mmio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-sccb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-sdw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-slimbus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-spi-avmm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-spmi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap-w1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regmap.c regmap: fix NULL deref on lookup 2024-11-08 11:26:08 +01:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00