Ignore:
File:
1 edited

Legend:

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

    r8fed3ef r09ab0a9a  
    211211                ddf_msg(LVL_NOTE, "Unsupported number of virtqueues: %u",
    212212                    num_queues);
    213                 rc = ELIMIT;
    214213                goto fail;
    215214        }
     
    343342        assert(descno < TX_BUFFERS);
    344343
    345         /* Setup the packet header */
     344        /* Setup the packed header */
    346345        virtio_net_hdr_t *hdr = (virtio_net_hdr_t *) virtio_net->tx_buf[descno];
    347346        memset(hdr, 0, sizeof(virtio_net_hdr_t));
    348347        hdr->gso_type = VIRTIO_NET_HDR_GSO_NONE;
    349         hdr->num_buffers = 0;
    350348
    351349        /* Copy packet data into the buffer just past the header */
     
    405403        if (fun == NULL) {
    406404                rc = ENOMEM;
    407                 goto uninitialize;
     405                goto error;
    408406        }
    409407        nic_t *nic = ddf_dev_data_get(dev);
     
    419417        if (rc != EOK) {
    420418                ddf_msg(LVL_ERROR, "Failed binding device function");
    421                 goto destroy;
     419                goto uninitialize;
    422420        }
    423421
     
    435433unbind:
    436434        ddf_fun_unbind(fun);
    437 destroy:
    438         ddf_fun_destroy(fun);
    439435uninitialize:
    440436        virtio_net_uninitialize(dev);
     437error:
    441438        return rc;
    442439}
Note: See TracChangeset for help on using the changeset viewer.