aboutsummaryrefslogtreecommitdiffstats
path: root/package/platform
diff options
context:
space:
mode:
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 ff4bbfcea4..dcdb0a9c87 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;
}