Skip to content

Commit f659e7e

Browse files
akpm00gregkh
authored andcommitted
fs/reiserfs/journal.c: add missing resierfs_warning() arg
commit 9ad553a upstream. One use of the reiserfs_warning() macro in journal_init_dev() is missing a parameter, causing the following warning: REISERFS warning (device loop0): journal_init_dev: Cannot open '%s': %i journal_init_dev: This also causes a WARN_ONCE() warning in the vsprintf code, and then a panic if panic_on_warn is set. Please remove unsupported %/ in format string WARNING: CPU: 1 PID: 4480 at lib/vsprintf.c:2138 format_decode+0x77f/0x830 lib/vsprintf.c:2138 Kernel panic - not syncing: panic_on_warn set ... Just add another string argument to the macro invocation. Addresses https://syzkaller.appspot.com/bug?id=0627d4551fdc39bf1ef5d82cd9eef587047f7718 Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Randy Dunlap <[email protected]> Reported-by: <[email protected]> Tested-by: Randy Dunlap <[email protected]> Acked-by: Jeff Mahoney <[email protected]> Cc: Alexander Viro <[email protected]> Cc: Jan Kara <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6337067 commit f659e7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/reiserfs/journal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ static int journal_init_dev(struct super_block *super,
26432643
if (IS_ERR(journal->j_dev_bd)) {
26442644
result = PTR_ERR(journal->j_dev_bd);
26452645
journal->j_dev_bd = NULL;
2646-
reiserfs_warning(super,
2646+
reiserfs_warning(super, "sh-457",
26472647
"journal_init_dev: Cannot open '%s': %i",
26482648
jdev_name, result);
26492649
return result;

0 commit comments

Comments
 (0)