aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2024-11-15 16:10:04 +0000
committerRichard Weinberger <[email protected]>2024-11-15 16:45:25 +0000
commitbcdcb115eaed5e988cf37cc9a1dd5f5dd200e927 (patch)
tree7abd2c35c845555766d30451a88cf5c9997ed219 /drivers/cdx/controller/cdx_controller.c
parentjffs2: Prevent rtime decompress memory corruption (diff)
downloadkernel-bcdcb115eaed5e988cf37cc9a1dd5f5dd200e927.tar.gz
kernel-bcdcb115eaed5e988cf37cc9a1dd5f5dd200e927.zip
ubifs: Fix uninitialized use of err in ubifs_jnl_write_inode()
Clang warns (or errors with CONFIG_WERROR=y): fs/ubifs/journal.c:986:20: error: variable 'err' is uninitialized when used here [-Werror,-Wuninitialized] 986 | ubifs_ro_mode(c, err); | ^~~ Set err to -EPERM before the call to ubifs_ro_mode() and reuse it in the return statement to resolve the warning. Fixes: 957e1c4e1779 ("ubifs: ubifs_jnl_write_inode: Only check once for the limitation of xattr count") Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions