diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-03-18 15:58:33 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-18 16:37:25 +0400 |
commit | 4999e9621a58fa03fe18aa2ea55838bd2e755190 (patch) | |
tree | 60746ff9efb1582daa7ed1ab5c80c9d23617fbc6 /drivers/base/regmap/regcache.c | |
parent | 56fb1c74f3bda1c0100fc3e9a7888c229174f9a4 (diff) | |
download | linux-4999e9621a58fa03fe18aa2ea55838bd2e755190.tar.xz |
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>
Diffstat (limited to 'drivers/base/regmap/regcache.c')
0 files changed, 0 insertions, 0 deletions