]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Fix possible sleep-in-atomic in regmap_bulk_write()
authorTakashi Iwai <tiwai@suse.de>
Tue, 18 Mar 2014 11:58:33 +0000 (12:58 +0100)
committerMark Brown <broonie@linaro.org>
Tue, 18 Mar 2014 12:37:25 +0000 (12:37 +0000)
commitd6232d1bd1bce544b06921b592e94774131bd84f
tree60746ff9efb1582daa7ed1ab5c80c9d23617fbc6
parentc8b1586b60566de2add0b301aff7a9780af2882a
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>
drivers/base/regmap/regmap.c