* [mmotm:master 401/458] fs/adfs/super.c:471 adfs_fill_super() error: potential null dereference 'asb->s_map'. (adfs_read_map returns null)
@ 2015-03-25 1:40 kbuild test robot
2015-03-25 20:31 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2015-03-25 1:40 UTC (permalink / raw)
To: Sanidhya Kashyap
Cc: kbuild-all, Johannes Weiner, Andrew Morton, Linux Memory Management List
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@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
---
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@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [mmotm:master 401/458] fs/adfs/super.c:471 adfs_fill_super() error: potential null dereference 'asb->s_map'. (adfs_read_map returns null)
2015-03-25 1:40 [mmotm:master 401/458] fs/adfs/super.c:471 adfs_fill_super() error: potential null dereference 'asb->s_map'. (adfs_read_map returns null) kbuild test robot
@ 2015-03-25 20:31 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2015-03-25 20:31 UTC (permalink / raw)
To: kbuild test robot
Cc: Sanidhya Kashyap, kbuild-all, Johannes Weiner,
Linux Memory Management List
On Wed, 25 Mar 2015 09:40:22 +0800 kbuild test robot <fengguang.wu@intel.com> wrote:
> 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)
>
The report seems bogus - adfs_read_map() cannot return NULL.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-25 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25 1:40 [mmotm:master 401/458] fs/adfs/super.c:471 adfs_fill_super() error: potential null dereference 'asb->s_map'. (adfs_read_map returns null) kbuild test robot
2015-03-25 20:31 ` Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.