update sock api in lantiq atm driver

The ltq-atm driver provides its own replacement for net/atm/common.c:alloc_tx(),
defined in ltq_atm.c:atm_alloc_tx().
The read of sk_wmem_alloc is done in the wrong way, starting with commit
2b85a34e911bf483c27cfdd124aeb1605145dc80 in linux mainline it has to be
done through a specific wrapper.

Signed-off-by: Luca Dariz <[email protected]>
---
Index: package/platform/lantiq/ltq-atm/src/ltq_atm.c
===================================================================
--- package/platform/lantiq/ltq-atm/src/ltq_atm.c       (revisione 35820)
+++ package/platform/lantiq/ltq-atm/src/ltq_atm.c       (copia locale)
@@ -794,7 +794,7 @@
                return NULL;
        }
        /*  send buffer overflow    */
-       if ( atomic_read(&sk_atm(vcc)->sk_wmem_alloc) && !atm_may_send(vcc, 
size) ) {
+       if ( sk_wmem_alloc_get(sk_atm(vcc)) && !atm_may_send(vcc, size) ) {
                pr_err("atm_alloc_tx: send buffer overflow\n");
                return NULL;
        }

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to