]> www.infradead.org Git - users/jedix/linux-maple.git/commit
regmap: Specifically test writing 0 as a value to sparse caches
authorMark Brown <broonie@kernel.org>
Tue, 24 Sep 2024 10:08:53 +0000 (12:08 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:11:09 +0000 (01:11 +0200)
commit42afe80caff040525252af6e9601287777d144fe
tree452801fae89ef151b1c60541f69cfe1897aa8deb
parent21e9a1dd01b17095192ea86decc0c2081451612e
regmap: Specifically test writing 0 as a value to sparse caches

Since 0 can look a lot like a NULL pointer when used in a cache some clever
data structures might potentially introduce bugs specific to handling it.
Add some explicit testing of storing 0 as a value in a sparse cache, at the
minute there are no issues and this will stop any appearing in the future.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20240924-regcache-zero-value-v1-1-8a1224214b52@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c