habanalabs: use GFP_ATOMIC under spin lock
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 22 Feb 2019 05:46:01 +0000 (05:46 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Feb 2019 07:45:40 +0000 (08:45 +0100)
commit668ae7288e82aa8e7f7cc40b8e13248305d752e7
tree109d673755f63a6ac8d2bb60e73e51a987a05876
parent6ade6e903ad602b85cef0b40920415b2fed07f6b
habanalabs: use GFP_ATOMIC under spin lock

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes: 0feaf86d4e69 ("habanalabs: add virtual memory and MMU modules")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/memory.c