Ignore:
Timestamp:
2024-10-13T08:23:43Z (2 months ago)
Author:
GitHub <noreply@…>
Parents:
b3b79981 (diff), ebb1489 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:43)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:43)
Message:

Merge ebb1489dc508fcf7406914b8e8bb9bdb6b23f5b5 into b3b79981fde01c701df88e2e0c5bb93f62cdcf42

File:
1 edited

Legend:

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

    rb3b79981 r0472cf17  
    4343
    4444#include <virtio-pci.h>
     45#include <pcapdump_iface.h>
    4546
    4647#define NAME    "virtio-net"
     
    428429        }
    429430
    430         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     431        rc = nic_fun_add_to_cats(fun);
    431432        if (rc != EOK) {
    432                 ddf_msg(LVL_ERROR, "Failed adding function to category");
    433                 goto unbind;
     433                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     434                ddf_fun_unbind(fun);
     435                return rc;
    434436        }
    435437
     
    439441        return EOK;
    440442
    441 unbind:
    442         ddf_fun_unbind(fun);
     443        // unbind:
     444        // ddf_fun_unbind(fun);
    443445destroy:
    444446        ddf_fun_destroy(fun);
Note: See TracChangeset for help on using the changeset viewer.