imx: cmd_dek: Fix Uninitialized pointer read
authorYe Li <ye.li@nxp.com>
Thu, 15 Jun 2023 10:09:10 +0000 (18:09 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:29:40 +0000 (11:29 +0200)
commitf0e974e1e4f2c88ec4c09c7ab0fc9df6b7306d21
tree2d540501835d983bb60d6601f5b11f265dde35e5
parentd0e2a012a3832573a510b7323840d2d6f74dd0a7
imx: cmd_dek: Fix Uninitialized pointer read

Fix Coverity (CID 21143558).
When tee_shm_register returns failure, the shm_input pointer is
invalid, should not free it. Same issue also exists on registering
shm_output.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/cmd_dek.c