regmap: Fix possible sleep-in-atomic in regmap_bulk_write()
regmap deploys the spinlock for the protection when set up in fast_io mode. This may lead to sleep-in-atomic by memory allocation with GFP_KERNEL in regmap_bulk_write(). This patch fixes it by moving the allocation out of the lock. [Fix excessively large locked region -- broonie] Signed-off-by:Takashi Iwai <tiwai@suse.de> Signed-off-by:
Mark Brown <broonie@linaro.org>
Showing
Please register or sign in to comment