Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 4e2d387 in mainline


Ignore:
Timestamp:
2018-05-22T19:06:50Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
21ff054
Parents:
1d0620b
git-author:
Jakub Jermar <jakub@…> (2018-04-25 18:47:26)
git-committer:
Jakub Jermar <jakub@…> (2018-05-22 19:06:50)
Message:

Verify the device has the necessary configuration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio-pci.c

    r1d0620b r4e2d387  
    237237        }
    238238
     239        /* Check that the configuration is complete */
     240        if (!vdev->common_cfg || !vdev->notify_base || !vdev->isr ||
     241            !vdev->device_cfg) {
     242                rc = EINVAL;
     243                goto error;
     244        }
     245
    239246        return rc;
    240247
Note: See TracChangeset for help on using the changeset viewer.