]> git.karo-electronics.de Git - linux-beck.git/commit
btrfs: check return value of btrfs_start_ioctl_transaction() properly
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Mon, 24 Jan 2011 00:57:10 +0000 (00:57 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 28 Jan 2011 21:40:37 +0000 (16:40 -0500)
commitabd30bb0af9d4671506502278e8631bed9e3c35c
tree73e00f8712c8e4460647dd889cc32503fb56c21b
parent3612b49598c303cfb22a4b609427f829828e2427
btrfs: check return value of btrfs_start_ioctl_transaction() properly

btrfs_start_ioctl_transaction() returns ERR_PTR(), not NULL.
So, it is necessary to use IS_ERR() to check the return value.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c