btrfs: don't BUG_ON allocation errors in btrfs_drop_snapshot
authorMark Fasheh <mfasheh@suse.com>
Wed, 13 Jul 2011 17:59:59 +0000 (10:59 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 25 Jul 2011 21:35:15 +0000 (14:35 -0700)
commit38a1a919535742af677303271eb4ff731547b706
treebfefad00f864e8239b94607a3d712200fd825eaa
parent92b8e897f6e7ba4aa10037ebd8186f85d39330d0
btrfs: don't BUG_ON allocation errors in btrfs_drop_snapshot

In addition to properly handling allocation failure from btrfs_alloc_path, I
also fixed up the kzalloc error handling code immediately below it.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/btrfs/extent-tree.c