Skip to content

Commit

Permalink
LFU-646-1 arm: imx: Fix coverity issue 36261228: Use after free
Browse files Browse the repository at this point in the history
Remove the incorrect unmap_system from codes. The buf is never
mapped, so calling unmap here is not correct.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
  • Loading branch information
Ye Li committed Mar 4, 2024
1 parent 9b3315f commit 89291cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/mach-imx/cmd_fspinand.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,6 @@ static int fspinand_readback_check(struct fspi_nand *f, u64 offset, u64 len,
}

kfree(buf);
unmap_sysmem(buf);
return need_rewrite;
};

Expand Down

0 comments on commit 89291cf

Please sign in to comment.