diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 08:41:41 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-06-24 13:07:53 -0400 |
| commit | 816724e65c72a90a44fbad0ef0b59b186c85fa90 (patch) | |
| tree | 421fa29aedff988e392f92780637553e275d37a0 /drivers/scsi/scsi_proc.c | |
| parent | 70ac4385a13f78bc478f26d317511893741b05bd (diff) | |
| parent | d384ea691fe4ea8c2dd5b9b8d9042eb181776f18 (diff) | |
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts:
fs/nfs/inode.c
fs/super.c
Fix conflicts between patch 'NFS: Split fs/nfs/inode.c' and patch
'VFS: Permit filesystem to override root dentry on mount'
Diffstat (limited to 'drivers/scsi/scsi_proc.c')
| -rw-r--r-- | drivers/scsi/scsi_proc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_proc.c b/drivers/scsi/scsi_proc.c index 07be62bbaaea..55200e4fdf11 100644 --- a/drivers/scsi/scsi_proc.c +++ b/drivers/scsi/scsi_proc.c | |||
| @@ -266,8 +266,6 @@ static ssize_t proc_scsi_write(struct file *file, const char __user *buf, | |||
| 266 | lun = simple_strtoul(p + 1, &p, 0); | 266 | lun = simple_strtoul(p + 1, &p, 0); |
| 267 | 267 | ||
| 268 | err = scsi_add_single_device(host, channel, id, lun); | 268 | err = scsi_add_single_device(host, channel, id, lun); |
| 269 | if (err >= 0) | ||
| 270 | err = length; | ||
| 271 | 269 | ||
| 272 | /* | 270 | /* |
| 273 | * Usage: echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi | 271 | * Usage: echo "scsi remove-single-device 0 1 2 3" >/proc/scsi/scsi |
| @@ -284,6 +282,13 @@ static ssize_t proc_scsi_write(struct file *file, const char __user *buf, | |||
| 284 | err = scsi_remove_single_device(host, channel, id, lun); | 282 | err = scsi_remove_single_device(host, channel, id, lun); |
| 285 | } | 283 | } |
| 286 | 284 | ||
| 285 | /* | ||
| 286 | * convert success returns so that we return the | ||
| 287 | * number of bytes consumed. | ||
| 288 | */ | ||
| 289 | if (!err) | ||
| 290 | err = length; | ||
| 291 | |||
| 287 | out: | 292 | out: |
| 288 | free_page((unsigned long)buffer); | 293 | free_page((unsigned long)buffer); |
| 289 | return err; | 294 | return err; |
