]> git.ipfire.org Git - thirdparty/qemu.git/commit
softmmu-semi: fix lock_user* functions not to deref NULL upon OOM
authorJim Meyering <meyering@redhat.com>
Wed, 22 Aug 2012 11:55:56 +0000 (13:55 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 28 Aug 2012 06:50:02 +0000 (01:50 -0500)
commitc068d37020f8c0d10beaf4671c41b05b923d7896
tree05c593b24884445dc7690b309eb19270ed48117d
parentcc5caf7df4ed5833183121e08c6b6131722137d5
softmmu-semi: fix lock_user* functions not to deref NULL upon OOM

Return NULL upon malloc failure.

Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 15d9e3bc6af8a56af8c61911aab8453a54795db1)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
softmmu-semi.h