[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] pbuf_alloc problem
From: |
Savin Zlobec |
Subject: |
[lwip-users] pbuf_alloc problem |
Date: |
Wed, 4 Jun 2003 17:10:50 +0200 |
Hi,
I'am running lwip on ecos synthetic target and I found a problem in
pbuf_alloc function. If we ran out of pbufs when allocating a pbuf chain
from pool the already alocated pbufs are freed and NULL is returned.
But:
1. pbuf_free(p) (line 270) is called before the p->ref is set to 1 (line
327)
2. q->next = NULL (line 273) is commented out.
I've set the p->ref to 1 before calling pbuf_free and uncomented the q->next =
NULL (line 273) and now it works for me.
savin
____________________
http://www.email.si/
- [lwip-users] pbuf_alloc problem,
Savin Zlobec <=