Changeset 8fed3ef in mainline
- Timestamp:
- 2019-02-06T22:15:59Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2332e13
- Parents:
- e2f332c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
re2f332c r8fed3ef 211 211 ddf_msg(LVL_NOTE, "Unsupported number of virtqueues: %u", 212 212 num_queues); 213 rc = ELIMIT; 213 214 goto fail; 214 215 } … … 404 405 if (fun == NULL) { 405 406 rc = ENOMEM; 406 goto error;407 goto uninitialize; 407 408 } 408 409 nic_t *nic = ddf_dev_data_get(dev); … … 418 419 if (rc != EOK) { 419 420 ddf_msg(LVL_ERROR, "Failed binding device function"); 420 goto uninitialize;421 goto destroy; 421 422 } 422 423 … … 434 435 unbind: 435 436 ddf_fun_unbind(fun); 437 destroy: 438 ddf_fun_destroy(fun); 436 439 uninitialize: 437 440 virtio_net_uninitialize(dev); 438 error:439 441 return rc; 440 442 }
Note:
See TracChangeset
for help on using the changeset viewer.