LF-3622: mtd: nand: gpmi: fix the unintentional integer overflow issue
authorHan Xu <han.xu@nxp.com>
Mon, 29 Mar 2021 18:14:08 +0000 (13:14 -0500)
committerHan Xu <han.xu@nxp.com>
Wed, 5 May 2021 03:25:51 +0000 (22:25 -0500)
commit54e0c53a3823a7d46e0b7d8e03acbea2ad42128a
tree1cb7607e1b157e544779ffc5a2a4d4facec4e0a8
parent9e54db4aaa66361fd7fd50cd759bfed23920d096
LF-3622: mtd: nand: gpmi: fix the unintentional integer overflow issue

cast the variable from int to loff_t to avoid potential overflow issue,
reported by coverity. CID 17332.

Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c