]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix uncheck memory allocations
authorYoshinori Sano <yoshinori.sano@gmail.com>
Tue, 15 Feb 2011 12:01:42 +0000 (12:01 +0000)
committerroot <Chris Mason chris.mason@oracle.com>
Mon, 28 Mar 2011 09:37:49 +0000 (05:37 -0400)
commitd5759168e5ac7aaaeab2b259e5d612466a420f74
treec5c7e7a40e649ee9beb9014b284d3a6e66fb94f2
parenteadb9aca3104d6bf2a24e034e2abc95bc7a77368
Btrfs: fix uncheck memory allocations

To make Btrfs code more robust, several return value checks where memory
allocation can fail are introduced. I use BUG_ON where I don't know how
to handle the error properly, which increases the number of using the
notorious BUG_ON, though.

Signed-off-by: Yoshinori Sano <yoshinori.sano@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/compression.c
fs/btrfs/extent-tree.c
fs/btrfs/inode.c