From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C84AEC7EE23 for ; Thu, 1 Jun 2023 10:58:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbjFAK62 (ORCPT ); Thu, 1 Jun 2023 06:58:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbjFAK62 (ORCPT ); Thu, 1 Jun 2023 06:58:28 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7DED2F2; Thu, 1 Jun 2023 03:58:27 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id F17F380F1; Thu, 1 Jun 2023 10:58:26 +0000 (UTC) Date: Thu, 1 Jun 2023 13:58:25 +0300 From: Tony Lindgren To: Steven Price Cc: Greg Kroah-Hartman , Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Andy Shevchenko , linux-omap@vger.kernel.org, Vignesh Raghavendra , Sebastian Andrzej Siewior , Johan Hovold , John Ogness , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Dhruva Gole Subject: Re: [PATCH] serial: core: Don't drop port_mutex in serial_core_remove_one_port Message-ID: <20230601105825.GZ14287@atomide.com> References: <20230601105548.29965-1-steven.price@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601105548.29965-1-steven.price@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org * Steven Price [230601 10:56]: > Commit 84a9582fd203 ("serial: core: Start managing serial controllers to > enable runtime PM") required the caller to hold port_mutex rather than > taking it locally. However the mutex_unlock() call wasn't removed > causing the mutex to be dropped unexpectly. Remove the call to > mutex_unlock() (and fix up the early return) to restore correct > behaviour. > > Fixes: 84a9582fd203 ("serial: core: Start managing serial controllers to enable runtime PM") Reviewed-by: Tony Lindgren