Commit b98aee46 authored by Yang Li's avatar Yang Li Committed by Jens Wiklander
Browse files

optee: Fix NULL but dereferenced coccicheck error



Eliminate the following coccicheck warning:
./drivers/tee/optee/smc_abi.c:1508:12-15: ERROR: optee is NULL but
dereferenced.

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Fixes: 6749e69c ("optee: add asynchronous notifications")
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
parent 6749e69c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1505,8 +1505,8 @@ static int optee_probe(struct platform_device *pdev)
	kfree(optee);
err_free_pool:
	tee_shm_pool_free(pool);
	if (optee->smc.memremaped_shm)
		memunmap(optee->smc.memremaped_shm);
	if (memremaped_shm)
		memunmap(memremaped_shm);
	return rc;
}