From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp.codeaurora.org ([198.145.29.96]:52533 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbbEINrp (ORCPT ); Sat, 9 May 2015 09:47:45 -0400 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Subject: Re: mwifiex: do not return success when command times out From: Kalle Valo In-Reply-To: <20150430235202.GA35256@dtor-ws> To: Dmitry Torokhov Cc: Amitkumar Karwar , Avinash Patil , "John W. Linville" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <20150509134744.C0E9D14011B@smtp.codeaurora.org> (sfid-20150509_154806_290162_DE1C26C6) Date: Sat, 9 May 2015 13:47:44 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org List-ID: > wait_event_interruptible_timeout() returns 0 upon timeout. We should > convert it to a negative error code (such as -ETIMEDOUT) instead of > returning it directly, as return code of 0 indicates that command was > executed. > > Signed-off-by: Dmitry Torokhov Thanks, applied to wireless-drivers-next.git. Kalle Valo