]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tee/optee/shm_pool: fix application of sizeof to pointer
authorjing yangyang <jing.yangyang@zte.com.cn>
Fri, 20 Aug 2021 03:21:27 +0000 (20:21 -0700)
committerJens Wiklander <jens.wiklander@linaro.org>
Tue, 14 Sep 2021 05:54:56 +0000 (07:54 +0200)
commit88a3856c0a8c03188db7913f4d49379432fe1f93
treec28002d3bded7920ea977abb5b37499e42fbee7c
parent7d2a07b769330c34b4deabeed939325c77a7ec2f
tee/optee/shm_pool: fix application of sizeof to pointer

sizeof when applied to a pointer typed expression gives the size of
the pointer.

./drivers/tee/optee/shm_pool.c:38:28-34: ERROR application of sizeof to pointer

This issue was detected with the help of Coccinelle.

Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: jing yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/shm_pool.c