hfs: avoid crash in hfs_bnode_create
authorJeff Mahoney <jeffm@suse.com>
Fri, 24 May 2013 22:55:16 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 May 2013 23:22:51 +0000 (16:22 -0700)
commitfb09c3733a94b5f1dba50359d09c9e217c763fb9
treed9ed1d68d337e6e495968b1920598dd8f8b7ff80
parent28ccddf7952c496df2a51ce5aee4f2a058a98bab
hfs: avoid crash in hfs_bnode_create

Commit 634725a92938 ("hfs: cleanup HFS+ prints") removed the BUG_ON in
hfs_bnode_create in hfsplus.  This patch removes it from the hfs version
and avoids an fsfuzzer crash.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfs/bnode.c