summaryrefslogtreecommitdiff
path: root/drivers/base/topology.c
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2023-10-06 10:21:04 +0200
committerMark Brown <broonie@kernel.org>2023-10-09 13:13:53 +0100
commitc6df843348d6b71ea986266c12831cb60c2cf325 (patch)
tree4e5e25e0d59f3c2538c3428124cad853d87d7f6a /drivers/base/topology.c
parent7a795ac8d49e2433e1b97caf5e99129daf8e1b08 (diff)
regmap: fix NULL deref on lookup
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>
Diffstat (limited to 'drivers/base/topology.c')
0 files changed, 0 insertions, 0 deletions