LU-18608 pcc: fix INTEGER_OVERFLOW in pcc_file_read_iter()
Fixing the possible INTEGER_OVERFLOW issue reported from Coverity.
/lustre/llite/pcc.c: 2643 in pcc_file_read_iter()
2641 iocb->ki_filp = file;
2642 pcc_io_fini(inode, PIT_READ, result, cached);
CID 454276: Insecure data handling (INTEGER_OVERFLOW)
"result", which might have overflowed,
is returned from the function.
2643 RETURN(result);
Test-Parameters: trivial testlist=sanity-pcc
CoverityID: 454276 ("Insecure data handing")
Fixes:
ce98bfe5f72 ("LU-10499 pcc: add readonly mode for PCC")
Signed-off-by: Qian Yingjin <qian@ddn.com>
Change-Id: Ib856b7598441c06e0fcfe2e7f1eb4eef4d3d82b7
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57611
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>