Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp671002iol; Thu, 9 Jun 2022 11:20:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQaANncrzVXDKEyuz34eQXXQhzJAXDhSKJOqm49axys/bNLKpV7AScgKEiwDh96EWhUfKD X-Received: by 2002:a17:906:a219:b0:6e4:86a3:44ea with SMTP id r25-20020a170906a21900b006e486a344eamr38079313ejy.385.1654798853676; Thu, 09 Jun 2022 11:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654798853; cv=none; d=google.com; s=arc-20160816; b=LhXBVKZtt6sCn/4nZCXkKVVCy89kUBG+JYAXdLMCPhxXKeY21O5jMZGKE6MpJa2eUe b+EIfnt9Jr2+aTjlK3PuSpoNNhOOAN07eKBfmA71/Wie+MoBvDWqDWpgy3OQd3iWLUJ6 FaZDi8IGwBIlYUhLEv5E5MInmO9cRpU2zSk+isnrO1HDPVf4omJkcf5w1DijMtl4bu7T iJSYw0GwdlGm6DjOPdZvQh2x5+wKUclIVo52VIO7V0vWpln8RtOiJA0lpAnyRoqH00ye 38WabjaBibuiEfATM0q+1zXE7p+xbq0AUZxSEBxOwi2trQfXOHKmznOu4jszGUX7DjDK fnPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter; bh=rdXIF+/5BrdwY7RSyPMsiv15cC+P7VG0Gwq7r32ptHs=; b=GNiSsdZtO8D1O/AODJR9sfhgLLQUkUUHJHw2UVxno/lmv01Dp2lZqyNwJdfWqvwhSJ m2GYUvkgfpkQzTaWOQDKFnV2bcrIlBAvJqEBOKWcPy8k9feFvi/VXsu+TTpnz6z+NhQ/ HEsJWBl+sgG5ttDY89BTG8o76JYHs5UYwGLCpzygXVwM41J1UsH7g7LY15u0SiKfSlGI +xloyrzkzzJQlHH+8Qi+hLI5ACxKlkd6NkjccC+yPdRvekn8POLuU2fFnL9AIO5/4ChB im80JjJ72DxQT7fd3rNSxCMoe3w246S5Gf2NFwdySJV146MrjjUpyITLkyaN3Nk2wHQd 8uiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=f9ptvfus; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a056402158400b0042acd0c265asi24570633edv.352.2022.06.09.11.20.27; Thu, 09 Jun 2022 11:20:53 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=f9ptvfus; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244850AbiFIRQo (ORCPT + 99 others); Thu, 9 Jun 2022 13:16:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233789AbiFIRQl (ORCPT ); Thu, 9 Jun 2022 13:16:41 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A12191CEAF0; Thu, 9 Jun 2022 10:16:40 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 4847F20BE68D; Thu, 9 Jun 2022 10:16:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 4847F20BE68D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1654795000; bh=rdXIF+/5BrdwY7RSyPMsiv15cC+P7VG0Gwq7r32ptHs=; h=From:To:Subject:Date:From; b=f9ptvfusVj2osgluyfV5Hv3sHRKxBtf+BubLtvOxHaYXPMKMc63X1nqXKSypFiOzB 5sRDx6mMB91Li3RP/sCGNaIPh2og7Q6XO9R+Pa70vbaGH99z9Cy7t6gYN6whVfVvcf rBGt51XwgnjBK49Dd1RR5JU9wAa0cBt4TF/crhKw= From: Saurabh Sengar To: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, ssengar@microsoft.com, mikelley@microsoft.com Subject: [PATCH] Drivers: hv: vmbus: Release cpu lock in error case Date: Thu, 9 Jun 2022 10:16:36 -0700 Message-Id: <1654794996-13244-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 In case of invalid sub channel, release cpu lock before returning. Signed-off-by: Saurabh Sengar --- drivers/hv/channel_mgmt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hv/channel_mgmt.c b/drivers/hv/channel_mgmt.c index 280b529..5b12040 100644 --- a/drivers/hv/channel_mgmt.c +++ b/drivers/hv/channel_mgmt.c @@ -639,6 +639,7 @@ static void vmbus_process_offer(struct vmbus_channel *newchannel) */ if (newchannel->offermsg.offer.sub_channel_index == 0) { mutex_unlock(&vmbus_connection.channel_mutex); + cpus_read_unlock(); /* * Don't call free_channel(), because newchannel->kobj * is not initialized yet. -- 1.8.3.1