* re: Btrfs: convert printk to btrfs_ and fix BTRFS prefix
@ 2014-01-09 17:53 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2014-01-09 17:53 UTC (permalink / raw)
To: fholton; +Cc: linux-btrfs
Hello Frank Holton,
This is a semi-automatic email about new static checker warnings.
The patch f2ee0bf65a1c: "Btrfs: convert printk to btrfs_ and fix
BTRFS prefix" from Dec 20, 2013, leads to the following Smatch
complaint:
fs/btrfs/super.c:298 __btrfs_panic()
error: we previously assumed 'fs_info' could be null (see line 294)
fs/btrfs/super.c
293 errstr = btrfs_decode_error(errno);
294 if (fs_info && (fs_info->mount_opt & BTRFS_MOUNT_PANIC_ON_FATAL_ERROR))
^^^^^^^
Existing check.
295 panic(KERN_CRIT "BTRFS panic (device %s) in %s:%d: %pV (errno=%d %s)\n",
296 s_id, function, line, &vaf, errno, errstr);
297
298 btrfs_crit(fs_info, "panic in %s:%d: %pV (errno=%d %s)",
^^^^^^^
Patch introduces new unchecked dereference inside btrfs_crit().
299 function, line, &vaf, errno, errstr);
300 va_end(args);
regards,
dan carpenter
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-09 17:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 17:53 Btrfs: convert printk to btrfs_ and fix BTRFS prefix Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox