]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2006afe8644bd1bf6eeb3ad7f3e53a068580531a
treebfefad00f864e8239b94607a3d712200fd825eaa
parent5c6dd54ce73f8cfab5d2f70ed5ad1f462d045a68
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