From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Sat, 09 Jun 2012 19:07:02 +0000 Subject: Re: [patch] iwlwifi: turn on a lockdep assertion Message-Id: <20120609190702.GE13539@mwanda> List-Id: References: <20120609155718.GB6488@elgon.mountain> <1339265576.5029.1.camel@jlt3.sipsolutions.net> In-Reply-To: <1339265576.5029.1.camel@jlt3.sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Johannes Berg Cc: Wey-Yi Guy , Intel Linux Wireless , "John W. Linville" , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org On Sat, Jun 09, 2012 at 08:12:56PM +0200, Johannes Berg wrote: > On Sat, 2012-06-09 at 18:57 +0300, Dan Carpenter wrote: > > CMD_SYNC is zero so the if (cmd->flags & CMD_SYNC) is never true. I > > think it should be if (cmd->flags = CMD_SYNC). This enables a lockdep > > assertion. > > Good catch, thanks. It should really be if (!(cmd->flags & CMD_ASYNC)) > though I think as there could be other flags set which don't make it > non-sync. > > I'll commit a fix on Monday unless you want to send a separate patch > (which I'll then pick up on Monday :-) ) Sure. I'll resend it. regards, dan carpenter