tools/xenstore: fix event sending in introduce_domain()
authorJuergen Gross <jgross@suse.com>
Wed, 25 May 2022 10:55:49 +0000 (12:55 +0200)
committerJulien Grall <jgrall@amazon.com>
Wed, 25 May 2022 11:10:03 +0000 (12:10 +0100)
commit49dd52fb1311dadab29f6634d0bc1f4c022c357a
tree21838953e4c5b140d99ca6e0d31dbf950f44a4dd
parent9f735ee4903f1b9f1966bb4ba5b5616b03ae08b5
tools/xenstore: fix event sending in introduce_domain()

Commit fc2b57c9af46 ("xenstored: send an evtchn notification on
introduce_domain") introduced a potential NULL dereference in case of
Xenstore live update.

Fix that by adding an appropriate check.

Coverity-Id: 1504572
Fixes: fc2b57c9af46 ("xenstored: send an evtchn notification on introduce_domain")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/xenstore/xenstored_domain.c