summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-12 18:52:45 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-12 18:52:45 +0000
commit4355718b9872ceea56ea5f1dd7f1f4b90a954c24 (patch)
treef3086f49f46362f92fd37dddd9cd877d9d395196 /target/linux/ar71xx/files
parentcc049951157dcb2e35c309fe4fa85d6d42be0935 (diff)
ar71xx: drivers/ar71xx_wdt: fix size argument passed to copy_to_user()
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23983 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
index 976b23a01..abe157cb0 100644
--- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
+++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
@@ -156,7 +156,7 @@ static long ar71xx_wdt_ioctl(struct file *file,
case WDIOC_GETSUPPORT:
ret = copy_to_user((struct watchdog_info *)arg,
&ar71xx_wdt_info,
- sizeof(&ar71xx_wdt_info)) ? -EFAULT : 0;
+ sizeof(ar71xx_wdt_info)) ? -EFAULT : 0;
break;
case WDIOC_GETSTATUS: