Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp577408rwd; Thu, 1 Jun 2023 04:13:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Lm78BF6IYB7IA97FM8mjABVrebM2/b30rjDhIHy8/Fj05NOrJ/QUeij74EzGl9mzmva5W X-Received: by 2002:a17:902:b901:b0:1ac:6d4c:c265 with SMTP id bf1-20020a170902b90100b001ac6d4cc265mr5444822plb.28.1685618019991; Thu, 01 Jun 2023 04:13:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685618019; cv=none; d=google.com; s=arc-20160816; b=RPV2tGrtP31STy4c2GC3RsUGgXxpRRELyci+a3sI3N1oD1BfPfoZgIFMzCmWe3exq+ 8+hjmhhIr9SRxY+U1G0gMiU+EywnGToMEqa0MQeWjxwJiJz2xZIWNNUdGntXK9rAHH+U ieSLj2v7rsOdpjmmRZEH9yaWEcR/na18w/t8qezBB0actIw+zKV1+fGlNVYCMVgev857 M4OobNKlipXb0PTf2LqnUYzfGaHdR8ZTa5DVxBPzjORu0VSqmLYyrrMGLkrCDDL099d3 0aaCNYOuxWWbNvTcn7kkrkURnOYyLyW2DHUGAvkElRZm4gablP4Kc39Wrt0ylwnW9wGz cfyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uBrApJ3yLjegfX8Yvf5iOeE8drWhACKpYTQsK3T4qoc=; b=n9hOaehkHVKsZyMh4pGYRJQgDnnOkSbgYtQAO7ioRPJo1wgtNHWNQDxnYTkShkZg8E YsIkZ6szINrIyKbJ9NKLGgYxHaK0whlrW7bATtjdVDDsLfqtRMvX0h24WyzkRRsMEjzf newzWhGmOXA6Hkbqisgxm9V9kgLPCh9i4DCInkYuVietjv9Zq2DBoZlEZP8O0DgmNhJK VslHd/lwv84//K4FsR6hBwuGDZa9uv01yiY4xgLNSJnXpd1RIZqXQ63mF/3Y9+U6Ryz7 mWD+EtKL+AgLYShAc3ieVwD6BJswQ1GLPg2yhsKGAUokZmYc0LeT5p1NhaG3lh7Kn3Ll Iu2g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a170902ea8600b001ae788e1660si2481648plb.441.2023.06.01.04.13.25; Thu, 01 Jun 2023 04:13:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233044AbjFAK63 (ORCPT + 99 others); Thu, 1 Jun 2023 06:58:29 -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> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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