tools/libxenevtchn: check xenevtchn_open() flags for not supported bits
authorJuergen Gross <jgross@suse.com>
Fri, 15 Jan 2021 08:29:36 +0000 (09:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 15 Jan 2021 11:44:47 +0000 (11:44 +0000)
commitf7918dc8f94c1640ba18341d7812f5c461d064ce
tree8e126c9fcc28bddcff23fe94d1caf4ccdedc85dc
parent1997d379dc64a8b86e74a380b8d7b1d43012f440
tools/libxenevtchn: check xenevtchn_open() flags for not supported bits

Refuse a call of xenevtchn_open() with unsupported bits in flags being
set.

This will change behavior for callers passing junk in flags today,
but those would otherwise get probably unwanted side effects when the
flags they specify today get any meaning. So checking flags is the
right thing to do.

Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/evtchn/core.c