Skip to content
Commit f2e055e7 authored by Daniel Mack's avatar Daniel Mack Committed by Mark Brown
Browse files

regmap: cache: bail in regmap_async_complete() for bus-less maps

Commit f8bd822c

 ("regmap: cache: Factor out block sync") made
regcache_rbtree_sync() call regmap_async_complete(), which in turn does
not check for map->bus before dereferencing it.

This causes a NULL pointer dereference on bus-less maps.

Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Cc: stable@vger.kernel.org [v3.10 only]
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 8bb495e3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment