ltq-atm: apply local patch to the source files
This package is maintained by the OpenWrt local repository. There is no need to modify it with the patch file. Just apply all patches to the source files. Signed-off-by: Shiji Yang <yangshiji66@outlook.com> Link: https://github.com/openwrt/openwrt/pull/18744 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
e130308299
commit
491764f0f0
2 changed files with 2 additions and 13 deletions
|
@ -1,12 +0,0 @@
|
||||||
--- a/ltq_atm.c
|
|
||||||
+++ b/ltq_atm.c
|
|
||||||
@@ -338,7 +338,8 @@ static int ppe_ioctl(struct atm_dev *dev
|
|
||||||
break;
|
|
||||||
|
|
||||||
case PPE_ATM_MIB_VCC: /* VCC related MIB */
|
|
||||||
- copy_from_user(&mib_vcc, arg, sizeof(mib_vcc));
|
|
||||||
+ if (copy_from_user(&mib_vcc, arg, sizeof(mib_vcc)))
|
|
||||||
+ return -EFAULT;
|
|
||||||
conn = find_vpivci(mib_vcc.vpi, mib_vcc.vci);
|
|
||||||
if (conn >= 0) {
|
|
||||||
mib_vcc.mib_vcc.aal5VccCrcErrors = g_atm_priv_data.conn[conn].aal5_vcc_crc_err;
|
|
|
@ -338,7 +338,8 @@ static int ppe_ioctl(struct atm_dev *dev, unsigned int cmd, void *arg)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PPE_ATM_MIB_VCC: /* VCC related MIB */
|
case PPE_ATM_MIB_VCC: /* VCC related MIB */
|
||||||
copy_from_user(&mib_vcc, arg, sizeof(mib_vcc));
|
if (copy_from_user(&mib_vcc, arg, sizeof(mib_vcc)))
|
||||||
|
return -EFAULT;
|
||||||
conn = find_vpivci(mib_vcc.vpi, mib_vcc.vci);
|
conn = find_vpivci(mib_vcc.vpi, mib_vcc.vci);
|
||||||
if (conn >= 0) {
|
if (conn >= 0) {
|
||||||
mib_vcc.mib_vcc.aal5VccCrcErrors = g_atm_priv_data.conn[conn].aal5_vcc_crc_err;
|
mib_vcc.mib_vcc.aal5VccCrcErrors = g_atm_priv_data.conn[conn].aal5_vcc_crc_err;
|
||||||
|
|
Loading…
Reference in a new issue