aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorGao Xiang <[email protected]>2021-08-25 20:07:57 +0800
committerGao Xiang <[email protected]>2021-08-25 22:05:58 +0800
commit1266b4a7ecb679587dc4d098abe56ea53313d569 (patch)
treed6583315427965eae54a2725916e083694748ab5 /net/lapb/lapb_subr.c
parentc5aa903a59db274554718cddfda9039913409ec9 (diff)
erofs: fix double free of 'copied'
Dan reported a new smatch warning [1] "fs/erofs/inode.c:210 erofs_read_inode() error: double free of 'copied'" Due to new chunk-based format handling logic, the error path can be called after kfree(copied). Set "copied = NULL" after kfree(copied) to fix this. [1] https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Fixes: c5aa903a59db ("erofs: support reading chunk-based uncompressed files") Reported-by: kernel test robot <[email protected]> Reported-by: Dan Carpenter <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions