Page MenuHomeFreeBSD

libvmmapi: Check for allocation failure in vm_vcpu_open()
AcceptedPublic

Authored by rosenfeld_grumpf.hope-2000.org on Fri, Apr 10, 6:02 PM.
Tags
None
Referenced Files
F152610215: D56346.diff
Wed, Apr 15, 11:50 PM
F152482168: D56346.diff
Wed, Apr 15, 5:55 AM
Unknown Object (File)
Tue, Apr 14, 1:29 PM
Unknown Object (File)
Sun, Apr 12, 10:46 PM
Unknown Object (File)
Sun, Apr 12, 5:15 PM
Unknown Object (File)
Sun, Apr 12, 6:47 AM
Unknown Object (File)
Sat, Apr 11, 12:09 AM
Unknown Object (File)
Fri, Apr 10, 10:47 PM

Details

Reviewers
emaste
markj
Group Reviewers
bhyve
Summary

vm_vcpu_open() really should check the value returned from malloc() and
return NULL on failure. Also, all users of vm_vcpu_open() need to check
the returned value for NULL, too.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72114
Build 68997: arc lint + arc unit