[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] pbuf_alloc problem
From: |
Leon Woestenberg |
Subject: |
Re: [lwip-users] pbuf_alloc problem |
Date: |
Wed, 4 Jun 2003 20:53:27 +0200 |
Hello Savin,
Confirmed and fixed in CVS! Many thanks for your debugging
activities.
Regards,
Leon.
----- Original Message -----
From: "Savin Zlobec" <address@hidden>
To: <address@hidden>
Sent: Wednesday, June 04, 2003 5:10 PM
Subject: [lwip-users] pbuf_alloc problem
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 mailing list
address@hidden
http://mail.nongnu.org/mailman/listinfo/lwip-users