ALSA: xen-front: fix a loop timeout
Subsystems (3)
PATCH 1/1 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().
sound/xen/xen_snd_front.c +1 -1
@@ -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) && - to--) + --to)msleep (10 );if (!to) {
Quoted 12 lines · Dan Carpenter
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 cc3196ae197c ("ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver")Signed-off-by Dan Carpenter <[email protected]>sound/xen/xen_snd_front.c +0
-0
sound/xen/xen_snd_front.c static int xen_drv_remove(struct xenbus_device *dev) · line 340
Quoted 8 lines
sound/xen/xen_snd_front.c +1
-1@@ -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) && - to--) + --to)msleep (10 );if (!to) {
Thank you for your patch,
Takashi Iwai
AppliedQuoted 22 lines · Oleksandr Andrushchenko
Quoted 12 lines · Dan Carpenter
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 cc3196ae197c ("ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver")Signed-off-by Dan Carpenter <[email protected]>sound/xen/xen_snd_front.c +0
-0sound/xen/xen_snd_front.c static int xen_drv_remove(struct xenbus_device *dev) · line 339
Quoted 7 lines
sound/xen/xen_snd_front.c +1
-1@@ -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) && - to--) + --to)msleep (10 );if (!to) {Thank you for your patch,
Quoted 1 line
Reviewed-by Oleksandr Andrushchenko <[email protected]>
Applied, thanks.
Takashi
Takashi Iwai
AppliedQuoted 22 lines · Oleksandr Andrushchenko
Quoted 12 lines · Dan Carpenter
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 cc3196ae197c ("ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver")Signed-off-by Dan Carpenter <[email protected]>sound/xen/xen_snd_front.c +0
-0sound/xen/xen_snd_front.c static int xen_drv_remove(struct xenbus_device *dev) · line 339
Quoted 7 lines
sound/xen/xen_snd_front.c +1
-1@@ -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) && - to--) + --to)msleep (10 );if (!to) {Thank you for your patch,
Quoted 1 line
Reviewed-by Oleksandr Andrushchenko <[email protected]>
Applied, thanks.
Takashi
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 12 lines · Dan Carpenter
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 cc3196ae197c ("ALSA: xen-front: Introduce Xen para-virtualized sound frontend driver")Signed-off-by Dan Carpenter <[email protected]>sound/xen/xen_snd_front.c +0
-0
sound/xen/xen_snd_front.c static int xen_drv_remove(struct xenbus_device *dev) · line 340
Quoted 8 lines
sound/xen/xen_snd_front.c +1
-1@@ -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) && - to--) + --to)msleep (10 );if (!to) {
Thank you for your patch,
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel