Changeset 4e2d387 in mainline for uspace/lib/virtio/virtio-pci.c


Ignore:
Timestamp:
2018-05-22T19:06:50Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.