ltq-atm: apply local patch to the source files
authorShiji Yang <[email protected]>
Sat, 10 May 2025 09:19:18 +0000 (17:19 +0800)
committerRobert Marko <[email protected]>
Tue, 13 May 2025 20:02:20 +0000 (22:02 +0200)
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 <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/18744
Signed-off-by: Robert Marko <[email protected]>
package/kernel/lantiq/ltq-atm/patches/100-ltq_atm-fix-compillation-warning.patch [deleted file]
package/kernel/lantiq/ltq-atm/src/ltq_atm.c

diff --git a/package/kernel/lantiq/ltq-atm/patches/100-ltq_atm-fix-compillation-warning.patch b/package/kernel/lantiq/ltq-atm/patches/100-ltq_atm-fix-compillation-warning.patch
deleted file mode 100644 (file)
index c74cfcb..0000000
+++ /dev/null
@@ -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;
index 70eb3e88e0796b7870fe4cb915bb2fd69081eb68..f317c62aa30d69ae321d11e3206b581cd403a7f5 100644 (file)
@@ -338,7 +338,8 @@ static int ppe_ioctl(struct atm_dev *dev, unsigned int cmd, void *arg)
                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;