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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jan 2020 09:01:09 +0000 (10:01 +0100)
commit15763f047ea2785a253d53edc91892ed7acb304f
tree70591deaa2403b1bf8c619a0afb8cc3282c5b1ff
parent88532d1e64e1a303b23ea13355c990f10a6b4b93
optee: Fix multi page dynamic shm pool alloc

[ Upstream commit 5a769f6ff439cedc547395a6dc78faa26108f741 ]

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: a249dd200d03 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tee/optee/shm_pool.c