Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263385
b: refs/heads/master
c: ba465d8
h: refs/heads/master
i:
  263383: ce30c41
v: v3
  • Loading branch information
Julia Lawall authored and Martin Schwidefsky committed Aug 24, 2011
1 parent 2af9dec commit 94fee09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27e7318c3e47e4fac71fcb472623434063ccc7a5
refs/heads/master: ba465d830ed1703713251917f154688ec537580f
10 changes: 7 additions & 3 deletions trunk/drivers/s390/block/dasd_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ static int dasd_ioctl_reset_profile(struct dasd_block *block)
static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
{
struct dasd_profile_info_t *data;
int rc = 0;

data = kmalloc(sizeof(*data), GFP_KERNEL);
if (!data)
Expand Down Expand Up @@ -279,11 +280,14 @@ static int dasd_ioctl_read_profile(struct dasd_block *block, void __user *argp)
spin_unlock_bh(&block->profile.lock);
} else {
spin_unlock_bh(&block->profile.lock);
return -EIO;
rc = -EIO;
goto out;
}
if (copy_to_user(argp, data, sizeof(*data)))
return -EFAULT;
return 0;
rc = -EFAULT;
out:
kfree(data);
return rc;
}
#else
static int dasd_ioctl_reset_profile(struct dasd_block *block)
Expand Down

0 comments on commit 94fee09

Please sign in to comment.