Check should be done with & instead of | otherwise it will always be evaluated as 1/true regardless of the flags. Fixes #12308 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>