aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-11-12 18:52:45 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-11-12 18:52:45 +0000
commit920a34c0ce6a3c8c53dd695d9b2fee4947e3465f (patch)
tree27004b133404c52e5eec9d280428707cfa964e78 /target/linux/ar71xx
parent3106aea40b1880cd84e2f819cba54fd9896aaef1 (diff)
downloadupstream-920a34c0ce6a3c8c53dd695d9b2fee4947e3465f.tar.gz
upstream-920a34c0ce6a3c8c53dd695d9b2fee4947e3465f.tar.bz2
upstream-920a34c0ce6a3c8c53dd695d9b2fee4947e3465f.zip
ar71xx: drivers/ar71xx_wdt: fix size argument passed to copy_to_user()
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23983
Diffstat (limited to 'target/linux/ar71xx')
-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 976b23a017..abe157cb0d 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: