diff options
| -rw-r--r-- | drivers/zorro/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/zorro/proc.c b/drivers/zorro/proc.c index 4f4ea88fbb71..cafc50454292 100644 --- a/drivers/zorro/proc.c +++ b/drivers/zorro/proc.c | |||
| @@ -68,7 +68,7 @@ proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t * | |||
| 68 | cd.cd_BoardAddr = (void *)zorro_resource_start(z); | 68 | cd.cd_BoardAddr = (void *)zorro_resource_start(z); |
| 69 | cd.cd_BoardSize = zorro_resource_len(z); | 69 | cd.cd_BoardSize = zorro_resource_len(z); |
| 70 | 70 | ||
| 71 | if (copy_to_user(buf, &cd, nbytes)) | 71 | if (copy_to_user(buf, (void *)&cd + pos, nbytes)) |
| 72 | return -EFAULT; | 72 | return -EFAULT; |
| 73 | *ppos += nbytes; | 73 | *ppos += nbytes; |
| 74 | 74 | ||
