Skip to content

Commit 4012a6f

Browse files
vikasbrcmdavem330
authored andcommitted
firmware: tee_bnxt: Fix multiple call to tee_client_close_context
Fix calling multiple tee_client_close_context in case of shm allocation fails. Fixes: 2468809 (“firmware: broadcom: add OP-TEE based BNXT f/w manager”) Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent d8dc2c9 commit 4012a6f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/firmware/broadcom/tee_bnxt_fw.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ static int tee_bnxt_fw_probe(struct device *dev)
215215
fw_shm_pool = tee_shm_alloc(pvt_data.ctx, MAX_SHM_MEM_SZ,
216216
TEE_SHM_MAPPED | TEE_SHM_DMA_BUF);
217217
if (IS_ERR(fw_shm_pool)) {
218-
tee_client_close_context(pvt_data.ctx);
219218
dev_err(pvt_data.dev, "tee_shm_alloc failed\n");
220219
err = PTR_ERR(fw_shm_pool);
221220
goto out_sess;

0 commit comments

Comments
 (0)