From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Carpenter Date: Sun, 10 Jun 2012 15:39:20 +0000 Subject: Re: [patch v2] iwlwifi: turn on a lockdep assertion Message-Id: <20120610153920.GP4400@mwanda> List-Id: References: <20120610112521.GA20676@elgon.mountain> <4FD4BC51.80407@bfs.de> In-Reply-To: <4FD4BC51.80407@bfs.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: walter harms Cc: Johannes Berg , Wey-Yi Guy , Intel Linux Wireless , "John W. Linville" , linux-wireless@vger.kernel.org, kernel-janitors@vger.kernel.org On Sun, Jun 10, 2012 at 05:25:05PM +0200, walter harms wrote: > > > Am 10.06.2012 13:25, schrieb Dan Carpenter: > > CMD_SYNC is zero so the if (cmd->flags & CMD_SYNC) is never true and we > > never check the assertion. > > > > Signed-off-by: Dan Carpenter > > --- > > v2: enables the assertion even more than v1 (based on feedback from > > Johannes Berg). > > The important part is CMD_SYNC -> CMD_ASYNC Not really, no. I considered Johannes's version for my first patch but I decided to be conservative because I didn't know the code well enough to say what is safe. regards, dan carpenter