diff options
author | 2021-10-05 15:30:43 +0200 | |
---|---|---|
committer | 2021-10-05 15:30:52 +0200 | |
commit | f81fd21476187275b0d8181fbe8c18a6f47d9139 (patch) | |
tree | 0632bacf67fdf876570a7fa4eef232aba0a3a291 | |
parent | Merge tag 'at91-fixes-5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/fixes (diff) | |
parent | tee/optee/shm_pool: fix application of sizeof to pointer (diff) | |
download | wireguard-linux-f81fd21476187275b0d8181fbe8c18a6f47d9139.tar.xz wireguard-linux-f81fd21476187275b0d8181fbe8c18a6f47d9139.zip |
Merge tag 'optee-fix-for-v5.15' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
Fix OP-TEE shm_pool lint warning
* tag 'optee-fix-for-v5.15' of git://git.linaro.org/people/jens.wiklander/linux-tee:
tee/optee/shm_pool: fix application of sizeof to pointer
Link: https://lore.kernel.org/r/20210915113813.GA509196@jade
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to '')
-rw-r--r-- | drivers/tee/optee/shm_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tee/optee/shm_pool.c b/drivers/tee/optee/shm_pool.c index c41a9a501a6e..d167039af519 100644 --- a/drivers/tee/optee/shm_pool.c +++ b/drivers/tee/optee/shm_pool.c @@ -35,7 +35,7 @@ static int pool_op_alloc(struct tee_shm_pool_mgr *poolm, unsigned int nr_pages = 1 << order, i; struct page **pages; - pages = kcalloc(nr_pages, sizeof(pages), GFP_KERNEL); + pages = kcalloc(nr_pages, sizeof(*pages), GFP_KERNEL); if (!pages) { rc = -ENOMEM; goto err; |