summaryrefslogtreecommitdiff
path: root/package/platform
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-03-12 13:53:01 +0000
committerJohn Crispin <john@openwrt.org>2013-03-12 13:53:01 +0000
commit7e1c5b0be86ce6e435a8d32fafe7743463a43344 (patch)
treee8506b28aaa169d2d17e81d50599d5aef92cbd5d /package/platform
parente3a6ea65e1a80bcfa3f05ea38a22853dd464944d (diff)
downloadmtk-20170518-7e1c5b0be86ce6e435a8d32fafe7743463a43344.zip
mtk-20170518-7e1c5b0be86ce6e435a8d32fafe7743463a43344.tar.gz
mtk-20170518-7e1c5b0be86ce6e435a8d32fafe7743463a43344.tar.bz2
ltq-atm: update sock api
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 <luca.dariz@gmail.com> SVN-Revision: 35991
Diffstat (limited to 'package/platform')
-rw-r--r--package/platform/lantiq/ltq-atm/src/ltq_atm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/platform/lantiq/ltq-atm/src/ltq_atm.c b/package/platform/lantiq/ltq-atm/src/ltq_atm.c
index ff4bbfc..dcdb0a9 100644
--- a/package/platform/lantiq/ltq-atm/src/ltq_atm.c
+++ b/package/platform/lantiq/ltq-atm/src/ltq_atm.c
@@ -794,7 +794,7 @@ struct sk_buff* atm_alloc_tx(struct atm_vcc *vcc, unsigned int size)
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;
}