[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080114211305.GI9847@does.not.exist>
Date: Mon, 14 Jan 2008 23:13:05 +0200
From: Adrian Bunk <bunk@...nel.org>
To: Eric Sandeen <sandeen@...hat.com>, zippel@...ux-m68k.org
Cc: linux-kernel@...r.kernel.org
Subject: fs/hfs/btree.c: new NULL dereference
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists