]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ccree: pick alloc mem flags based on req flags
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 7 Jan 2018 12:14:16 +0000 (12:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:27:22 +0000 (16:27 +0100)
commit0751c54da77773bdea011e096c81c3ea27d1fc17
treea7ef3ca79e30c5035c72c74d3052876b869f7365
parent17b54c9e7ae684b3e8dd08b8a29c15f1ea81e862
staging: ccree: pick alloc mem flags based on req flags

The ccree driver was allocating memory using GFP_KERNEL flag
always, ignoring the flags set in the crypto request. Fix it
by choosing gfp flags based on crypto request flags.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ccree/ssi_buffer_mgr.c
drivers/staging/ccree/ssi_buffer_mgr.h
drivers/staging/ccree/ssi_cipher.c
drivers/staging/ccree/ssi_driver.h
drivers/staging/ccree/ssi_hash.c