]> git.baikalelectronics.ru Git - kernel.git/commit
optee: Fix multi page dynamic shm pool alloc
authorSumit Garg <sumit.garg@linaro.org>
Mon, 30 Dec 2019 13:22:40 +0000 (18:52 +0530)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 3 Jan 2020 10:21:12 +0000 (11:21 +0100)
commite21b1bcf2e530f2323b72196634b109bcdd80a57
treea9e3402daab21bb7022737099fa54e2848f6d694
parent498b47670c5ee1c0b4be596eefcfb035b76ac53e
optee: Fix multi page dynamic shm pool alloc

optee_shm_register() expected pages to be passed as an array of page
pointers rather than as an array of contiguous pages. So fix that via
correctly passing pages as per expectation.

Fixes: bf7371a0fe7e ("tee: optee: Fix dynamic shm pool allocations")
Reported-by: Vincent Cao <vincent.t.cao@intel.com>
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Tested-by: Vincent Cao <vincent.t.cao@intel.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/shm_pool.c