aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 874d36e5f167..74d89133f768 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1211,6 +1211,9 @@ static noinline int btrfs_ioctl_ino_lookup(struct file *file,
1211 return -EPERM; 1211 return -EPERM;
1212 1212
1213 args = kmalloc(sizeof(*args), GFP_KERNEL); 1213 args = kmalloc(sizeof(*args), GFP_KERNEL);
1214 if (!args)
1215 return -ENOMEM;
1216
1214 if (copy_from_user(args, argp, sizeof(*args))) { 1217 if (copy_from_user(args, argp, sizeof(*args))) {
1215 kfree(args); 1218 kfree(args);
1216 return -EFAULT; 1219 return -EFAULT;