tools/xenstored: fix possible NULL deref
PATCH 1/1 tools/xenstored: fix possible NULL deref
Avoid dereferencing NULL in introduce_domain() when called during live update.
Coverity ID: 1665111
Fixes f78895ad78c9 ("tools/xenstored: Read event channel from xenstored page")
Signed-off-by Juergen Gross <[email protected]>
--- tools/xenstored/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/xenstored/domain.c +1 -1
@@ -1032,7 +1032,7 @@ static struct domain *introduce_domain(const void *ctx,if (!interface && !restore)return NULL ; -if (interface->evtchn_port) +if (!restore && interface->evtchn_port) port = interface->evtchn_port;if (new_domain (domain, port, restore)) {
Signature · 1 line
2.43.0
Quoted 7 lines · Juergen Gross
Avoid dereferencing NULL in
introduce_domain()when called during live update.Coverity ID: 1665111
Fixes f78895ad78c9 ("tools/xenstored: Read event channel from xenstored page")Signed-off-by Juergen Gross <[email protected]>
Reviewed-by Jason Andryuk <[email protected]>
Thanks,
Jason