xen: use a better chardev type check
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
bed3bb9b7e
commit
315dd72d75
@ -38,7 +38,7 @@ static int store_dev_info(int domid, Chardev *cs, const char *string)
|
|||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
/* Only continue if we're talking to a pty. */
|
/* Only continue if we're talking to a pty. */
|
||||||
if (strncmp(cs->filename, "pty:", 4)) {
|
if (!CHARDEV_IS_PTY(cs)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
pts = cs->filename + 4;
|
pts = cs->filename + 4;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user