Files
ack-tegra/fs/ubifs
Nathan Chancellor bcdcb115ea 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: 957e1c4e17 ("ubifs: ubifs_jnl_write_inode: Only check once for the limitation of xattr count")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
2024-11-15 17:45:25 +01:00
..
2024-07-12 21:53:35 +02:00
2024-09-27 08:18:43 -07:00
2024-09-12 11:58:45 +02:00
2024-07-12 21:53:35 +02:00
2023-02-02 21:13:53 +01:00
2024-07-12 21:53:35 +02:00
2024-11-14 17:58:45 +01:00
2024-07-12 21:53:35 +02:00
2020-08-02 22:59:03 +02:00
2024-07-12 21:53:35 +02:00
2021-04-15 22:00:26 +02:00