mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 04:48:27 +02:00
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
This commit is contained in:
parent
cc04995115
commit
4355718b98
@ -156,7 +156,7 @@ static long ar71xx_wdt_ioctl(struct file *file,
|
|||||||
case WDIOC_GETSUPPORT:
|
case WDIOC_GETSUPPORT:
|
||||||
ret = copy_to_user((struct watchdog_info *)arg,
|
ret = copy_to_user((struct watchdog_info *)arg,
|
||||||
&ar71xx_wdt_info,
|
&ar71xx_wdt_info,
|
||||||
sizeof(&ar71xx_wdt_info)) ? -EFAULT : 0;
|
sizeof(ar71xx_wdt_info)) ? -EFAULT : 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WDIOC_GETSTATUS:
|
case WDIOC_GETSTATUS:
|
||||||
|
Loading…
Reference in New Issue
Block a user