From: H Hartley Sweeten Date: Thu, 25 Jul 2013 23:21:13 +0000 (-0700) Subject: staging: comedi: usbduxsigma: set *_cmd_running flags before submitting urbs X-Git-Tag: v3.12-rc1~183^2~522 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c922a9076afd9e483bc17d768ed813d2f76f7cb;p=pandora-kernel.git staging: comedi: usbduxsigma: set *_cmd_running flags before submitting urbs As pointed out by Ian Abbott, the *_cmd_running flags should be set before submitting the urbs. There is a possible race condition where an urb could complete and the flag is checked in the completion routine before it's set. Reported-by: Ian Abbott Acked-by: Ian Abbott Reviewed-by: Ian Abbott Signed-off-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed