diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-06-09 11:24:32 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-08-09 21:14:08 +0200 |
commit | 2190a1e7705456c2298873b2547a6eb19b8e31ae (patch) | |
tree | 5af2f0231c592c63fdfbb99cf45af650edfcce15 /drivers/zorro | |
parent | d50ac468dd023db32c9455b2df56237caf601cbd (diff) | |
download | kernel_goldelico_gta04-2190a1e7705456c2298873b2547a6eb19b8e31ae.zip kernel_goldelico_gta04-2190a1e7705456c2298873b2547a6eb19b8e31ae.tar.gz kernel_goldelico_gta04-2190a1e7705456c2298873b2547a6eb19b8e31ae.tar.bz2 |
zorro: Fix reading of proc/bus/zorro/* in small chunks
proc_bus_zorro_read() didn't take into account the current file position,
hence it always read from the start of the ConfigDev.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/zorro')
-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 4f4ea88..cafc504 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 * cd.cd_BoardAddr = (void *)zorro_resource_start(z); cd.cd_BoardSize = zorro_resource_len(z); - if (copy_to_user(buf, &cd, nbytes)) + if (copy_to_user(buf, (void *)&cd + pos, nbytes)) return -EFAULT; *ppos += nbytes; |