diff options
author | James Bottomley <jejb@titanic.(none)> | 2005-09-06 18:52:54 -0400 |
---|---|---|
committer | James Bottomley <jejb@titanic.(none)> | 2005-09-06 18:52:54 -0400 |
commit | 17fa53da1239b8712c5cebbd72a74c713b6c2db9 (patch) | |
tree | 8cf55e47ce681a6c899ccf8e06abeccecb20d38b /drivers/scsi/scsi_ioctl.c | |
parent | 3173d8c342971a03857d8af749a3f57da7d06b57 (diff) | |
parent | fe1b2d544d71300f8e2d151c3c77a130d13a58be (diff) |
Merge by hand (conflicts in sd.c)
Diffstat (limited to 'drivers/scsi/scsi_ioctl.c')
-rw-r--r-- | drivers/scsi/scsi_ioctl.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/scsi_ioctl.c b/drivers/scsi/scsi_ioctl.c index 179a767d221d..b7fddac81347 100644 --- a/drivers/scsi/scsi_ioctl.c +++ b/drivers/scsi/scsi_ioctl.c | |||
@@ -30,20 +30,20 @@ | |||
30 | 30 | ||
31 | #define MAX_BUF PAGE_SIZE | 31 | #define MAX_BUF PAGE_SIZE |
32 | 32 | ||
33 | /* | 33 | /** |
34 | * If we are told to probe a host, we will return 0 if the host is not | 34 | * ioctl_probe -- return host identification |
35 | * present, 1 if the host is present, and will return an identifying | 35 | * @host: host to identify |
36 | * string at *arg, if arg is non null, filling to the length stored at | 36 | * @buffer: userspace buffer for identification |
37 | * (int *) arg | 37 | * |
38 | * Return an identifying string at @buffer, if @buffer is non-NULL, filling | ||
39 | * to the length stored at * (int *) @buffer. | ||
38 | */ | 40 | */ |
39 | |||
40 | static int ioctl_probe(struct Scsi_Host *host, void __user *buffer) | 41 | static int ioctl_probe(struct Scsi_Host *host, void __user *buffer) |
41 | { | 42 | { |
42 | unsigned int len, slen; | 43 | unsigned int len, slen; |
43 | const char *string; | 44 | const char *string; |
44 | int temp = host->hostt->present; | ||
45 | 45 | ||
46 | if (temp && buffer) { | 46 | if (buffer) { |
47 | if (get_user(len, (unsigned int __user *) buffer)) | 47 | if (get_user(len, (unsigned int __user *) buffer)) |
48 | return -EFAULT; | 48 | return -EFAULT; |
49 | 49 | ||
@@ -59,7 +59,7 @@ static int ioctl_probe(struct Scsi_Host *host, void __user *buffer) | |||
59 | return -EFAULT; | 59 | return -EFAULT; |
60 | } | 60 | } |
61 | } | 61 | } |
62 | return temp; | 62 | return 1; |
63 | } | 63 | } |
64 | 64 | ||
65 | /* | 65 | /* |