fs/hfs/btree.c: new NULL dereference
From: Adrian Bunk
Date: Mon Jan 14 2008 - 16:14:19 EST
The Coverity checker spotted the following NULL dereference introduced
by commit cf0594625083111ae522496dc1c256f7476939c2:
<-- snip -->
...
struct hfs_btree *hfs_btree_open(struct super_block *sb, u32 id, btree_keycmp keycmp)
{
...
if (!tree->inode)
goto free_tree;
...
free_tree:
tree->inode->i_mapping->a_ops = &hfs_aops;
...
<-- snip -->
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/