projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3612b49
)
btrfs: check return value of btrfs_start_ioctl_transaction() properly
author
Tsutomu Itoh
<t-itoh@jp.fujitsu.com>
Mon, 24 Jan 2011 00:57:10 +0000
(
00:57
+0000)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 28 Jan 2011 21:40:37 +0000
(16:40 -0500)
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
patch
|
blob
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index
04b4fb9
..
12dabe2
100644
(file)
--- a/
fs/btrfs/ioctl.c
+++ b/
fs/btrfs/ioctl.c
@@
-2085,7
+2085,7
@@
static long btrfs_ioctl_trans_start(struct file *file)
ret = -ENOMEM;
trans = btrfs_start_ioctl_transaction(root, 0);
- if (
!trans
)
+ if (
IS_ERR(trans)
)
goto out_drop;
file->private_data = trans;