Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3492820pxf; Mon, 29 Mar 2021 03:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCnOqhuflZf2GQ2R3iEg5pSb5z5+HBxnhNN4zjlQmWRDg0dNb1qUokKT+ex9rOYcg/SxiW X-Received: by 2002:a17:906:5611:: with SMTP id f17mr28052235ejq.208.1617015346502; Mon, 29 Mar 2021 03:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617015346; cv=none; d=google.com; s=arc-20160816; b=ig2xnr2jggC7gTnZJyjRSWpYeFcd4ZGUcZI7Ini5Rb7PogD0pBTvwXj2QJu4am6KjS KPtAay6Tm1o+GxGUAn6Om0XgLuKHi8xJiq33KRQMvzCrV2s8otp5U8Q/rdJAtbBjwS0R FSVzNS6RjHG6Nctg4R04qxgZU3g/IyyMA3hcrFbWLYBZ5snK6AE1M1+MS3WYzp/a3qpp MFZj55HgUwkIPVB76/BmPfMifgw/sTenEDTR4eykCjK76Hf1ENfFXdH9lGYBk7tV4yxt SkgHy3O4qfFa6xh9FAkl3OqIhCiI1j6viP3Qsh2RewPrmwaYVxMChG0zSKNR5zA8cx8t ltGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=M4JEP1kVJYqABysDnRHqJFog+HqEzeaKE1xTRTib6iU=; b=KvLrlD7RjzPHOty7BNJgA7LmHAmPVYLg1rBs9jDKq30p3Fg7SGTA0DGqPStEHjf5Za 44DQY3Dx+bsKV1kPkh4Q8zKlDaEihdpBAfIqartgDu2VtjH19tIevKxwhv71fCywLgc5 XWEpvUACM0KWbKyj1gF6eB+kK5HVAUO9rrhGcfmxhWSXtgiAZX83ncltt2yAivMDGi7W J/SY2Ykh9cET4qyL88AJT89fViuu1tzeznma0HBMQvRVWC0/4IiWzrSOGwG8W23osJrA lZe9vT6mzpMwRs2l4m4oHn3Dg+X4S9/v0L6T6u0S5mVwSNEcRxtCjQpp0o51frNrLyoU PBUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xv5FHkXb; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t3si12207121edq.578.2021.03.29.03.55.24; Mon, 29 Mar 2021 03:55:46 -0700 (PDT) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xv5FHkXb; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235066AbhC2Ipp (ORCPT + 99 others); Mon, 29 Mar 2021 04:45:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:41812 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234076AbhC2I1o (ORCPT ); Mon, 29 Mar 2021 04:27:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8491E619C3; Mon, 29 Mar 2021 08:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617006400; bh=bIEDZuFsKuAvKMy90rwqNNGRjdBOBYGK8DrFVB9F2ac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xv5FHkXbBLh9leh7Gj448grA1Tg2UDk53AD14Pl9iZWtZ4xgeD9DklOxGAJYj5Y+m r+yCd2+ldefjezFyBzQLKxSV0PVPBrCBxd97p3om0Qqcn2TxWqT0x5CwaxbrfDUovJ I8rMyn0Ne94JESlrZphNmy64RRIi0L0+f59tVV0Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Hellwig , Jens Axboe Subject: [PATCH 5.10 220/221] nvme: fix the nsid value to print in nvme_validate_or_alloc_ns Date: Mon, 29 Mar 2021 09:59:11 +0200 Message-Id: <20210329075636.478418211@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig commit f4f9fc29e56b6fa9d7fa65ec51d3c82aff99c99b upstream. ns can be NULL at this point, and my move of the check from the original patch by Chaitanya broke this. Fixes: 0ec84df4953b ("nvme-core: check ctrl css before setting up zns") Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -4022,7 +4022,7 @@ static void nvme_validate_or_alloc_ns(st if (!nvme_multi_css(ctrl)) { dev_warn(ctrl->device, "command set not reported for nsid: %d\n", - ns->head->ns_id); + nsid); break; } nvme_alloc_ns(ctrl, nsid, &ids);