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

Michal Prívozník mprivozn at redhat.com
Mon Oct 18 08:57:05 UTC 2021


On 10/18/21 9:58 AM, Peter Krempa wrote:
> When parsing of the node device XML 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>
> ---
>  src/conf/node_device_conf.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn at redhat.com>

Michal




More information about the libvir-list mailing list