ar71xx: drivers/ar71xx_wdt: fix size argument passed to copy_to_user()
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23983
This commit is contained in:
parent
3106aea40b
commit
920a34c0ce
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue