diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 158b91984b60..2037fc0efab1 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c | |||
@@ -4612,8 +4612,8 @@ long btrfs_ioctl_send(struct file *mnt_file, void __user *arg_) | |||
4612 | sctx->flags = arg->flags; | 4612 | sctx->flags = arg->flags; |
4613 | 4613 | ||
4614 | sctx->send_filp = fget(arg->send_fd); | 4614 | sctx->send_filp = fget(arg->send_fd); |
4615 | if (IS_ERR(sctx->send_filp)) { | 4615 | if (!sctx->send_filp) { |
4616 | ret = PTR_ERR(sctx->send_filp); | 4616 | ret = -EBADF; |
4617 | goto out; | 4617 | goto out; |
4618 | } | 4618 | } |
4619 | 4619 | ||