tree: git://git.cmpxchg.org/linux-mmotm.git master head: e077e8e0158533bb824f3e2d9c0eaaaf4679b0ca commit: 4c21b0fd037c3174eeb5a9fbf620063c0192a369 [401/458] adfs: return correct return values fs/adfs/super.c:471 adfs_fill_super() error: potential null dereference 'asb->s_map'. (adfs_read_map returns null) vim +471 fs/adfs/super.c ^1da177e Linus Torvalds 2005-04-16 455 asb->s_version = dr->format_version; ^1da177e Linus Torvalds 2005-04-16 456 asb->s_log2sharesize = dr->log2sharesize; ^1da177e Linus Torvalds 2005-04-16 457 ^1da177e Linus Torvalds 2005-04-16 458 asb->s_map = adfs_read_map(sb, dr); 4c21b0fd Sanidhya Kashyap 2015-03-25 459 if (IS_ERR(asb->s_map)) { 4c21b0fd Sanidhya Kashyap 2015-03-25 460 ret = PTR_ERR(asb->s_map); ^1da177e Linus Torvalds 2005-04-16 461 goto error_free_bh; 4c21b0fd Sanidhya Kashyap 2015-03-25 462 } ^1da177e Linus Torvalds 2005-04-16 463 ^1da177e Linus Torvalds 2005-04-16 464 brelse(bh); ^1da177e Linus Torvalds 2005-04-16 465 ^1da177e Linus Torvalds 2005-04-16 466 /* ^1da177e Linus Torvalds 2005-04-16 467 * set up enough so that we can read an inode ^1da177e Linus Torvalds 2005-04-16 468 */ ^1da177e Linus Torvalds 2005-04-16 469 sb->s_op = &adfs_sops; ^1da177e Linus Torvalds 2005-04-16 470 ^1da177e Linus Torvalds 2005-04-16 @471 dr = (struct adfs_discrecord *)(asb->s_map[0].dm_bh->b_data + 4); ^1da177e Linus Torvalds 2005-04-16 472 ^1da177e Linus Torvalds 2005-04-16 473 root_obj.parent_id = root_obj.file_id = le32_to_cpu(dr->root); ^1da177e Linus Torvalds 2005-04-16 474 root_obj.name_len = 0; da23ef05 Stuart Swales 2011-03-22 475 /* Set root object date as 01 Jan 1987 00:00:00 */ da23ef05 Stuart Swales 2011-03-22 476 root_obj.loadaddr = 0xfff0003f; da23ef05 Stuart Swales 2011-03-22 477 root_obj.execaddr = 0xec22c000; ^1da177e Linus Torvalds 2005-04-16 478 root_obj.size = ADFS_NEWDIR_SIZE; ^1da177e Linus Torvalds 2005-04-16 479 root_obj.attr = ADFS_NDA_DIRECTORY | ADFS_NDA_OWNER_READ | :::::: The code at line 471 was first introduced by commit :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2 :::::: TO: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> :::::: CC: Linus Torvalds <torvalds@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>