From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1951281AbdDYQBu (ORCPT ); Tue, 25 Apr 2017 12:01:50 -0400 Received: from www381.your-server.de ([78.46.137.84]:52984 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1950362AbdDYQBm (ORCPT ); Tue, 25 Apr 2017 12:01:42 -0400 Subject: Re: [PATCH] iio: inkern: fix a static checker error To: Peter Rosin , linux-kernel@vger.kernel.org References: <1492722117-19618-1-git-send-email-peda@axentia.se> <9b2138e1-11a1-a923-4c9c-7091b3e54f99@metafoo.de> <7b6ad5b7-a538-9007-8981-f36f9877a8e3@axentia.se> <60934fcd-214e-3618-84ff-46484197e737@axentia.se> Cc: Jonathan Cameron , Hartmut Knaack , Peter Meerwald-Stadler , linux-iio@vger.kernel.org From: Lars-Peter Clausen Message-ID: <79712dbc-a367-7acc-dd6e-5e3892913e36@metafoo.de> Date: Tue, 25 Apr 2017 18:01:39 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0 MIME-Version: 1.0 In-Reply-To: <60934fcd-214e-3618-84ff-46484197e737@axentia.se> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Authenticated-Sender: lars@metafoo.de Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/24/2017 11:32 AM, Peter Rosin wrote: > On 2017-04-20 23:13, Peter Rosin wrote: >> On 2017-04-20 23:12, Lars-Peter Clausen wrote: >>> On 04/20/2017 11:01 PM, Peter Rosin wrote: >>>> Avoid this smatch error: >>>> drivers/iio/inkern.c:751 iio_read_avail_channel_raw() error: double unlock 'mutex:&chan->indio_dev->info_exist_lock' >>> >>> Looks good, but it's not just the smatch error, this is a real issue. This >>> even seems to be a endless loop, always jumping back to err_unlock. >> >> Yes, it should probably go to stable too... > > Nope, not an endless loop, but I of course only noticed after sending > a v2 [1] which falsely stated just that. Ignore that v2 patch and take > this one instead, for the reasons stated in my followup [2] to that > message. > > Involving stable is probably not needed either... Right, my fault for sending you the wrong way. Sorry for that.