Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/virtio-net/virtio-net.c

    r09ab0a9a r8fed3ef  
    211211                ddf_msg(LVL_NOTE, "Unsupported number of virtqueues: %u",
    212212                    num_queues);
     213                rc = ELIMIT;
    213214                goto fail;
    214215        }
     
    342343        assert(descno < TX_BUFFERS);
    343344
    344         /* Setup the packed header */
     345        /* Setup the packet header */
    345346        virtio_net_hdr_t *hdr = (virtio_net_hdr_t *) virtio_net->tx_buf[descno];
    346347        memset(hdr, 0, sizeof(virtio_net_hdr_t));
    347348        hdr->gso_type = VIRTIO_NET_HDR_GSO_NONE;
     349        hdr->num_buffers = 0;
    348350
    349351        /* Copy packet data into the buffer just past the header */
     
    403405        if (fun == NULL) {
    404406                rc = ENOMEM;
    405                 goto error;
     407                goto uninitialize;
    406408        }
    407409        nic_t *nic = ddf_dev_data_get(dev);
     
    417419        if (rc != EOK) {
    418420                ddf_msg(LVL_ERROR, "Failed binding device function");
    419                 goto uninitialize;
     421                goto destroy;
    420422        }
    421423
     
    433435unbind:
    434436        ddf_fun_unbind(fun);
     437destroy:
     438        ddf_fun_destroy(fun);
    435439uninitialize:
    436440        virtio_net_uninitialize(dev);
    437 error:
    438441        return rc;
    439442}
Note: See TracChangeset for help on using the changeset viewer.