336 |
/* only allocate memory for the pbuf structure */ |
/* only allocate memory for the pbuf structure */ |
337 |
p = memp_mallocp(MEMP_PBUF); |
p = memp_mallocp(MEMP_PBUF); |
338 |
if (p == NULL) { |
if (p == NULL) { |
339 |
DEBUGF(PBUF_DEBUG | DBG_TRACE | 2, ("pbuf_alloc: Could not allocate MEMP_PBUF for PBUF_REF.\n")); |
DEBUGF(PBUF_DEBUG | DBG_TRACE | 2, ("pbuf_alloc: Could not allocate MEMP_PBUF for PBUF_ROM/REF.\n")); |
340 |
return NULL; |
return NULL; |
341 |
} |
} |
342 |
/* caller must set this field properly, afterwards */ |
/* caller must set this field properly, afterwards */ |