mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
13 lines
504 B
Diff
13 lines
504 B
Diff
|
--- a/src/drv_tapi_ioctl.c
|
||
|
+++ b/src/drv_tapi_ioctl.c
|
||
|
@@ -702,7 +702,8 @@ static IFX_int32_t TAPI_IoctlDev (IFX_TAPI_DRV_CTX_t* pDrvCtx,
|
||
|
|
||
|
if (ret == TAPI_statusOk || ret == 1)
|
||
|
{
|
||
|
- copy_to_user ((IFX_void_t*)ioarg, p_tmp, sizeof(IFX_TAPI_CAP_t));
|
||
|
+ if (copy_to_user ((IFX_void_t*)ioarg, p_tmp, sizeof(IFX_TAPI_CAP_t)))
|
||
|
+ ret = TAPI_statusErrKernCpy;
|
||
|
}
|
||
|
}
|
||
|
TAPI_OS_Free (p_tmp);
|