Re: [PATCH] btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction

2012-08-16 Thread Wang Sheng-Hui
>> BUG_ON(!h); >> >>> >>> BUG_ON(root->commit_root); >>> BUG_ON(fs_info->running_transaction); >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in >> the body of a message to majord...@vger.kernel.org &g

Re: [PATCH] btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction

2012-08-16 Thread Jie Liu
On 08/16/12 16:03, Arne Jansen wrote: > On 16.08.2012 09:57, Wang Sheng-Hui wrote: >> For malloc may fail, we should check it before assign >> values to the fields of struct btrfs_trans_handle *h. >> >> Signed-off-by: Wang Sheng-Hui >> --- >> transaction.h |5 + >> 1 files changed, 5 inse

Re: [PATCH] btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction

2012-08-16 Thread Arne Jansen
On 16.08.2012 09:57, Wang Sheng-Hui wrote: > For malloc may fail, we should check it before assign > values to the fields of struct btrfs_trans_handle *h. > > Signed-off-by: Wang Sheng-Hui > --- > transaction.h |5 + > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/tr

[PATCH] btrfs-progs: add malloc check in transaction.h/btrfs_start_transaction

2012-08-16 Thread Wang Sheng-Hui
For malloc may fail, we should check it before assign values to the fields of struct btrfs_trans_handle *h. Signed-off-by: Wang Sheng-Hui --- transaction.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/transaction.h b/transaction.h index a1070e0..d4e42a1 100644 ---