ar71xx: drivers/ar71xx_wdt: fix size argument passed to copy_to_user()
authorGabor Juhos <juhosg@openwrt.org>
Fri, 12 Nov 2010 18:52:45 +0000 (18:52 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 12 Nov 2010 18:52:45 +0000 (18:52 +0000)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23983

target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c

index 976b23a017fadaa6d43acbcaad073d6c7ce7d479..abe157cb0dd4185b8bd74bdac2ec5c5b0562dd8a 100644 (file)
@@ -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: