mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-22 13:06:14 +00:00
2f4bb69664
CI is supposed to catch all of these. Some of these predate CI. Signed-off-by: Rosen Penev <rosenp@gmail.com>
13 lines
482 B
Diff
13 lines
482 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_TA
|
|
|
|
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);
|