From: Bing Zhao Date: Thu, 3 Jan 2013 00:07:35 +0000 (-0800) Subject: mwifiex: check wait_event_interruptible return value X-Git-Tag: v3.8-rc4~29^2~19^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c969d8ccb1e17bd20742f4ac9f00c1a64487234;p=pandora-kernel.git mwifiex: check wait_event_interruptible return value wait_event_interruptible function returns -ERESTARTSYS if it's interrupted by a signal. Driver should check the return value and handle this case properly. In mwifiex_wait_queue_complete() routine, as we are now checking wait_event_interruptible return value, the condition check is not required. Also, we have removed mwifiex_cancel_pending_ioctl() call to avoid a chance of sending second command to FW by other path as soon as we clear current command node. FW can not handle two commands simultaneously. Cc: "3.6+" Signed-off-by: Bing Zhao Signed-off-by: Amitkumar Karwar Signed-off-by: John W. Linville --- Reading git-diff-tree failed