diff options
author | Johan Hovold <[email protected]> | 2023-10-06 10:21:04 +0200 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-10-09 13:13:53 +0100 |
commit | c6df843348d6b71ea986266c12831cb60c2cf325 (patch) | |
tree | 4e5e25e0d59f3c2538c3428124cad853d87d7f6a /lib/zstd/common/debug.h | |
parent | 7a795ac8d49e2433e1b97caf5e99129daf8e1b08 (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: [email protected] # 5.8
Cc: Marc Kleine-Budde <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/zstd/common/debug.h')
0 files changed, 0 insertions, 0 deletions