[libvirt] [PATCH] Avoid crash on NULL pointer in lock driver impls during hotplug

Eric Blake eblake at redhat.com
Thu Jun 2 14:21:17 UTC 2011


On 06/02/2011 07:58 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> When virLockDriverAcquire is invoked during hotplug the state
> parameter will be left as NULL.
> 
> * src/locking/lock_driver_nop.c,
>   src/locking/lock_driver_sanlock.c: Don't reference NULL state
>   parameter
> ---
>  src/locking/lock_driver_nop.c     |    7 ++++---
>  src/locking/lock_driver_sanlock.c |   29 ++++++++++++++++++-----------
>  2 files changed, 22 insertions(+), 14 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110602/b2a6e73f/attachment-0001.sig>


More information about the libvir-list mailing list