303 |
/* only allocate memory for the pbuf structure */ |
/* only allocate memory for the pbuf structure */ |
304 |
p = memp_mallocp(MEMP_PBUF); |
p = memp_mallocp(MEMP_PBUF); |
305 |
if (p == NULL) { |
if (p == NULL) { |
306 |
DEBUGF(PBUF_DEBUG | DBG_TRACE | 2, ("pbuf_alloc: Could not allocate MEMP_PBUF for PBUF_ROM/REF.\n")); |
DEBUGF(PBUF_DEBUG | DBG_TRACE | 2, ("pbuf_alloc: Could not allocate MEMP_PBUF for PBUF_%s.\n", flag == PBUF_ROM?"ROM":"REF")); |
307 |
return NULL; |
return NULL; |
308 |
} |
} |
309 |
/* caller must set this field properly, afterwards */ |
/* caller must set this field properly, afterwards */ |