Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7746
b: refs/heads/master
c: 3299352
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and James Bottomley committed Sep 6, 2005
1 parent ce5be2c commit 2a4516d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 4869040512082b761de2d7c35975d01044f8bfea
refs/heads/master: 32993523dc59759ae6cb349e4d231d4cd2165329
18 changes: 9 additions & 9 deletions trunk/drivers/scsi/scsi_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,20 @@

#define MAX_BUF PAGE_SIZE

/*
* If we are told to probe a host, we will return 0 if the host is not
* present, 1 if the host is present, and will return an identifying
* string at *arg, if arg is non null, filling to the length stored at
* (int *) arg
/**
* ioctl_probe -- return host identification
* @host: host to identify
* @buffer: userspace buffer for identification
*
* Return an identifying string at @buffer, if @buffer is non-NULL, filling
* to the length stored at * (int *) @buffer.
*/

static int ioctl_probe(struct Scsi_Host *host, void __user *buffer)
{
unsigned int len, slen;
const char *string;
int temp = host->hostt->present;

if (temp && buffer) {
if (buffer) {
if (get_user(len, (unsigned int __user *) buffer))
return -EFAULT;

Expand All @@ -59,7 +59,7 @@ static int ioctl_probe(struct Scsi_Host *host, void __user *buffer)
return -EFAULT;
}
}
return temp;
return 1;
}

/*
Expand Down

0 comments on commit 2a4516d

Please sign in to comment.