Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181342
b: refs/heads/master
c: e39eeae
h: refs/heads/master
v: v3
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Feb 17, 2010
1 parent c013797 commit fe9d2b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 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: 2a8ccf3187aff6defed72f7d8fa562ff2f69ef2a
refs/heads/master: e39eeaed1f75fcd46783aad34cb9ab8a6046bb01
16 changes: 3 additions & 13 deletions trunk/drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -2287,16 +2287,6 @@ static void cmd_special_free(struct ctlr_info *h, struct CommandList *c)

#ifdef CONFIG_COMPAT

static int do_ioctl(struct scsi_device *dev, int cmd, void *arg)
{
int ret;

lock_kernel();
ret = hpsa_ioctl(dev, cmd, arg);
unlock_kernel();
return ret;
}

static int hpsa_ioctl32_passthru(struct scsi_device *dev, int cmd, void *arg);
static int hpsa_ioctl32_big_passthru(struct scsi_device *dev,
int cmd, void *arg);
Expand All @@ -2319,7 +2309,7 @@ static int hpsa_compat_ioctl(struct scsi_device *dev, int cmd, void *arg)
case CCISS_REGNEWD:
case CCISS_RESCANDISK:
case CCISS_GETLUNINFO:
return do_ioctl(dev, cmd, arg);
return hpsa_ioctl(dev, cmd, arg);

case CCISS_PASSTHRU32:
return hpsa_ioctl32_passthru(dev, cmd, arg);
Expand Down Expand Up @@ -2355,7 +2345,7 @@ static int hpsa_ioctl32_passthru(struct scsi_device *dev, int cmd, void *arg)
if (err)
return -EFAULT;

err = do_ioctl(dev, CCISS_PASSTHRU, (void *)p);
err = hpsa_ioctl(dev, CCISS_PASSTHRU, (void *)p);
if (err)
return err;
err |= copy_in_user(&arg32->error_info, &p->error_info,
Expand Down Expand Up @@ -2392,7 +2382,7 @@ static int hpsa_ioctl32_big_passthru(struct scsi_device *dev,
if (err)
return -EFAULT;

err = do_ioctl(dev, CCISS_BIG_PASSTHRU, (void *)p);
err = hpsa_ioctl(dev, CCISS_BIG_PASSTHRU, (void *)p);
if (err)
return err;
err |= copy_in_user(&arg32->error_info, &p->error_info,
Expand Down

0 comments on commit fe9d2b7

Please sign in to comment.