smatch stuff: -next: null dereference in ext4_readdir()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ted,

There is a NULL dereference introduced in linux-next "ext4: Use
ext4_error_file() to print the pathname to the corrupted inode"

fs/ext4/dir.c +170 ext4_readdir(59) error: potential null derefence 'bh'.
   168                  if (!bh) {
   169                          if (!dir_has_error) {
   170                                  EXT4_ERROR_FILE(filp, bh->b_blocknr,
                                                              ^^^^^^^^^^^^^
	"bh" is null here.

   171                                                  "directory contains a "
   172                                                  "hole at offset %Lu",
   173                                             (unsigned long long) filp->f_pos);
   174                                  dir_has_error = 1;

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux