Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6382378pxb; Mon, 8 Nov 2021 07:44:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLvKCnCNwBRvsuzIKq8zqBs/hcD9gtq5cAfiFs5nVUdERp4cj/ETN5yeA6dhXzyB+hLFRg X-Received: by 2002:a05:6e02:2143:: with SMTP id d3mr638855ilv.241.1636386286427; Mon, 08 Nov 2021 07:44:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636386286; cv=none; d=google.com; s=arc-20160816; b=t269KPXksfH4hhONvowTuqdTKwLRN4lAcm7wmxU6u+Ur6ub4Gu87FeqPYYOybGF/21 1sNp2kWFy9MEMtbNt6jeha4lhn0GTe4vslwWld2HZm/kYXbPcBz4VUTd51udsIxr2Zy+ rEUgjDYatTPlJFKoxLEkTJ6g2Her1veVM+VkkrGHsa+l6vSNc9LZvfijBYrfRaf8is0e imihchT3/6sAxDYPm/39g/oRXfCN0MmANobvy6ixKbYd6e1/VpwN+2mEriTVFVom1pa/ 9I706+mXQVMGQXAmMO3x3aahexPC9D1jbFWjiFU2lElDKOTBN998OMgIlKMgCTvhhEcg mDCw== 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=MxrytVLw9uh69qoX0r197tR6AIMkYSznUUwb0bfwvaU=; b=nXUACWoEUzSOH2TQ1BL6weC4yzJ6SucBLb5oWlPI77EDNI1jSVpmDaaZwhlzalb+AY 7S3iwv0GJI1dned6CuVh3eW7ggvIJ94Ew7OHOds3nnCGeN65FThBO+F1bAHg2o4LQsQi CceqbkvFsoV6hWKfJeYB6RGw4+yLd/tHSLzkay7IcjVfvz+4EEJUMmMzoxzn7YTTBlRi mtUqnLJ8DsE1O6HBxx5WAeQOqJNMJN0FSvvF4TNnAxcrau4fkXaIFU/cBr4cRjt+ih/w ZlWrU92fLzN/lr7gbDQ7ofOe+rjEy7HP8yDkSGEtbSE8iCyE/9oTihVKVDuDkFxyFsqp jS7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si5078879jat.76.2021.11.08.07.44.33; Mon, 08 Nov 2021 07:44:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236429AbhKHLTZ (ORCPT + 99 others); Mon, 8 Nov 2021 06:19:25 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:36554 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236204AbhKHLTZ (ORCPT ); Mon, 8 Nov 2021 06:19:25 -0500 Received: by mail-wm1-f43.google.com with SMTP id i8-20020a7bc948000000b0030db7b70b6bso3435904wml.1; Mon, 08 Nov 2021 03:16:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=MxrytVLw9uh69qoX0r197tR6AIMkYSznUUwb0bfwvaU=; b=4pKZ95r1uRAekE7iYVgXPKDfFXUdqqmZy9M3JfGVsfo+dP3AkcSTcm0s58f9dgy85f DvXRDloUmVIK7wowVyyeMPBrj126yynCoPTQsQcwGWq2vFYJc79UHqSs296KH9Y2mJLW ybVUr0PX1ax7YRHNQvmUWmaf6UQ7R6/6V/i/j+k4hIkf+9GpYff+Hkpeo67otelTMiGs MEKAu86qiIjI+A38xwGX46/y3RCrq+sIyvXorlnWaidc2XFEBIUnNBYX0tPQ87FZjHzw cPkM65B57EjxmkszuG7v52s6OgQ6Cpa4BYMvg1nplpOUK0bUTXiI2D7wba+0piLUWaQn T0+g== X-Gm-Message-State: AOAM532FeWzq+vU0enUQvZHQ83DxlOgwbQ+Jw/8zGVimkwRtrDc+5EWK 9jiuaNUo+kDu0ismdP3cjZut6pLFOfs= X-Received: by 2002:a05:600c:1549:: with SMTP id f9mr29176965wmg.118.1636370200099; Mon, 08 Nov 2021 03:16:40 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h16sm18356263wrm.27.2021.11.08.03.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 03:16:39 -0800 (PST) Date: Mon, 8 Nov 2021 11:16:37 +0000 From: Wei Liu To: Borislav Petkov Cc: LKML , linux-hyperv@vger.kernel.org, Wei Liu Subject: Re: [PATCH v0 08/42] Drivers: hv: vmbus: Check notifier registration return value Message-ID: <20211108111637.c3vsesezc7hwjbty@liuwe-devbox-debian-v2> References: <20211108101157.15189-1-bp@alien8.de> <20211108101157.15189-9-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211108101157.15189-9-bp@alien8.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 08, 2021 at 11:11:23AM +0100, Borislav Petkov wrote: > From: Borislav Petkov > > Avoid homegrown notifier registration checks. > > No functional changes. > > Signed-off-by: Borislav Petkov > Cc: linux-hyperv@vger.kernel.org Acked-by: Wei Liu > --- > drivers/hv/vmbus_drv.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c > index 392c1ac4f819..370afd108d2d 100644 > --- a/drivers/hv/vmbus_drv.c > +++ b/drivers/hv/vmbus_drv.c > @@ -1574,8 +1574,8 @@ static int vmbus_bus_init(void) > * the VMbus channel connection to prevent any VMbus > * activity after the VM panics. > */ > - atomic_notifier_chain_register(&panic_notifier_list, > - &hyperv_panic_block); > + if (atomic_notifier_chain_register(&panic_notifier_list, &hyperv_panic_block)) > + pr_warn("VMBus panic notifier already registered\n"); > > vmbus_request_offers(); > > -- > 2.29.2 >