[PATCH v2] virNodeDeviceDefParse: Don't call post-parse callbacks with NULL def

Erik Skultety eskultet at redhat.com
Mon Oct 18 15:33:03 UTC 2021


On Mon, Oct 18, 2021 at 02:08:41PM +0200, Peter Krempa wrote:
> When parsing of the node device XML fails we'd still call the post-parse
> and validation callbacks which makes no sense. Additionally the
> callbacks were expecting a non-NULL pointer which leads to a crash.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2014139
> Fixes: d5ae634ba28
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---

Reviewed-by: Erik Skultety <eskultet at redhat.com>




More information about the libvir-list mailing list