lwIP | Add GRETH/GRETH_GBIT driver (!40)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Tue Jun 16 06:56:01 UTC 2026




Matteo Concas commented on a discussion on rtemslwip/greth/greth_netif.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152484

 > +  if ( !rxch->rx_pbuf_ref ) {
 > +    greth_debug_printf(
 > +      "[ERR] greth_init_buffer_descriptors: Failed to allocate memory "
 > +      "for RX pbuf references\n"
 > +    );
 > +    goto free_rx_pbuf;
 > +  }
 > +
 > +  txch->desc_array = (struct greth_bd *)
 > +    aligned_alloc( bd_table_size, bd_table_size );
 > +  if ( !txch->desc_array ) {
 > +    greth_debug_printf(
 > +      "[ERR] greth_init_buffer_descriptors: Failed to allocate memory "
 > +      "for TX descriptors\n"
 > +    );
 > +    goto free_tx_desc;

Replaced the gotos with a call to `greth_deinit_buffer_descriptors()`.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152484
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260616/24312502/attachment.htm>


More information about the bugs mailing list