summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-jz4740.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-04-10 12:13:00 +1000
committerMike Snitzer <snitzer@redhat.com>2017-07-26 15:55:44 -0400
commit34c96507e8f6be497c15497be05f489fb34c5880 (patch)
tree769ae87a18b139fc9c5cdd0c5172ab8aae017fcf /drivers/pwm/pwm-jz4740.c
parent4218a9554653bd5be6e3c740749282b57434bd73 (diff)
downloadlinux-stable-34c96507e8f6be497c15497be05f489fb34c5880.tar.gz
linux-stable-34c96507e8f6be497c15497be05f489fb34c5880.tar.bz2
linux-stable-34c96507e8f6be497c15497be05f489fb34c5880.zip
dm verity fec: fix GFP flags used with mempool_alloc()
mempool_alloc() cannot fail for GFP_NOIO allocation, so there is no point testing for failure. One place the code tested for failure was passing "0" as the GFP flags. This is most unusual and is probably meant to be GFP_NOIO, so that is changed. Also, allocation from ->extra_pool and ->prealloc_pool are repeated before releasing the previous allocation. This can deadlock if the code is servicing a write under high memory pressure. To avoid deadlocks, change these to use GFP_NOWAIT and leave the error handling in place. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/pwm/pwm-jz4740.c')
0 files changed, 0 insertions, 0 deletions