summaryrefslogtreecommitdiff
path: root/drivers/base/class.c
diff options
context:
space:
mode:
authorSchspa Shi <schspa@gmail.com>2022-06-29 21:09:51 +0800
committerMark Brown <broonie@kernel.org>2022-06-30 13:33:21 +0100
commita5201d42e2f8a8e8062103170027840ee372742f (patch)
treeb8974ba6e793501cc02a3e2f4c8d5288671da66b /drivers/base/class.c
parent06fae51bb24451927118b4297886ebc8adbad8fa (diff)
regmap: cache: Add extra parameter check in regcache_init
When num_reg_defaults > 0 but reg_defaults is NULL, there will be a NULL pointer exception. Current code has no such usage, but as additional hardening, also check this to prevent any chance of crashing. Signed-off-by: Schspa Shi <schspa@gmail.com> Link: https://lore.kernel.org/r/20220629130951.63040-1-schspa@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/class.c')
0 files changed, 0 insertions, 0 deletions