btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction
authorWang Sheng-Hui <shhuiw@gmail.com>
Thu, 16 Aug 2012 12:15:56 +0000 (20:15 +0800)
committerDavid Sterba <dsterba@suse.cz>
Fri, 18 Jan 2013 17:27:21 +0000 (18:27 +0100)
commit0db197d8b2d2ab7214a2425c3c646e970e4085c8
tree916e30f5d9ef82a0e1286a9144a6c454e199d363
parent133e4520eab88ee11b31afa4cbb012afdb0bbc28
btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction

For malloc may fail, we should check it before assign
values to the struct btrfs_trans_handle *h.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
transaction.h