mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
OP-TEE: fix IS_ERR_VALUE compilation error
Fix the compilation error below: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Change-Id: Ib7cbc813c6eeeded220171ef5e4434ad798d06d9 Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
This commit is contained in:
@@ -117,7 +117,7 @@ struct tee_shm *rk_tee_shm_alloc(struct tee *tee, size_t size, uint32_t flags)
|
||||
|
||||
ret = sg_alloc_table_from_pages(&shm->sgt, &page,
|
||||
nr_pages, 0, nr_pages * PAGE_SIZE, GFP_KERNEL);
|
||||
if (IS_ERR_VALUE(ret)) {
|
||||
if (ret < 0) {
|
||||
dev_err(_DEV(tee), "%s: sg_alloc_table_from_pages() failed\n",
|
||||
__func__);
|
||||
tee->ops->free(shm);
|
||||
|
||||
Reference in New Issue
Block a user