Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180006
b: refs/heads/master
c: 9e2ab1f
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and James Bottomley committed Jan 17, 2010
1 parent 6002ada commit f85183a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 5a3fb3081a0166cdc5df0d9200234d09ad8d6083
refs/heads/master: 9e2ab1fabdbd88669fdebd368fb5cda32ad5438d
9 changes: 7 additions & 2 deletions trunk/drivers/s390/scsi/zfcp_cfdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include <linux/types.h>
#include <linux/miscdevice.h>
#include <asm/compat.h>
#include <asm/ccwdev.h>
#include "zfcp_def.h"
#include "zfcp_ext.h"
Expand Down Expand Up @@ -163,7 +164,7 @@ static void zfcp_cfdc_req_to_sense(struct zfcp_cfdc_data *data,
}

static long zfcp_cfdc_dev_ioctl(struct file *file, unsigned int command,
unsigned long buffer)
unsigned long arg)
{
struct zfcp_cfdc_data *data;
struct zfcp_cfdc_data __user *data_user;
Expand All @@ -175,7 +176,11 @@ static long zfcp_cfdc_dev_ioctl(struct file *file, unsigned int command,
if (command != ZFCP_CFDC_IOC)
return -ENOTTY;

data_user = (void __user *) buffer;
if (is_compat_task())
data_user = compat_ptr(arg);
else
data_user = (void __user *)arg;

if (!data_user)
return -EINVAL;

Expand Down

0 comments on commit f85183a

Please sign in to comment.