Commit 0d5bcfc9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai

ALSA: xen-front: fix a loop timeout

We want the loop to exit when "to" is set to zero, but in the current
code it's set to -1.  Also I tweaked the indenting so it doesn't look
like we're passing "--to" to xenbus_read_unsigned().

Fixes: cc3196ae ("ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver")
Signed-off-by: 's avatarDan Carpenter <>
Reviewed-by: 's avatarOleksandr Andrushchenko <>
Signed-off-by: 's avatarTakashi Iwai <>
parent e46dcbb1
......@@ -334,7 +334,7 @@ static int xen_drv_remove(struct xenbus_device *dev)
while ((xenbus_read_unsigned(front_info->xb_dev->otherend, "state",
XenbusStateUnknown) != XenbusStateInitWait) &&
if (!to) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment