summaryrefslogtreecommitdiff
path: root/fs/dlm/recoverd.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-07-12 20:04:16 -0500
committerGao Xiang <hsiangkao@linux.alibaba.com>2024-07-13 12:47:34 +0800
commita3c10bed330b7ab401254a0c91098a03b04f1448 (patch)
treeb8f84618606c09c4efc9c015ce494ce4013e5571 /fs/dlm/recoverd.c
parent1001042e54ef324c0c665b60a012519be05ae022 (diff)
erofs: silence uninitialized variable warning in z_erofs_scan_folio()
Smatch complains that: fs/erofs/zdata.c:1047 z_erofs_scan_folio() error: uninitialized symbol 'err'. The issue is if we hit this (!(map->m_flags & EROFS_MAP_MAPPED)) { condition then "err" isn't set. It's inside a loop so we would have to hit that condition on every iteration. Initialize "err" to zero to solve this. Fixes: 5b9654efb604 ("erofs: teach z_erofs_scan_folios() to handle multi-page folios") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://lore.kernel.org/r/f78ab50e-ed6d-4275-8dd4-a4159fa565a2@stanley.mountain Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/dlm/recoverd.c')
0 files changed, 0 insertions, 0 deletions