Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4384372pxj; Wed, 12 May 2021 04:37:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy58U1EDXJbQvf02u5Qzm1MY3tINYbqUXaCT2a39BPXCOS75ihJluxEK1dWKEur5HvCcFZC X-Received: by 2002:a5d:8b01:: with SMTP id k1mr25047906ion.127.1620819425585; Wed, 12 May 2021 04:37:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620819425; cv=none; d=google.com; s=arc-20160816; b=dblXVxzS6s1QQLRgvBctcb6VnaBTlP2l1d8lNLZkgPrinN6BpS+ErQ2pPLYp6ZeHB+ PZTwT/+uYKh94Hx8a3o5sP9SiCImd/KttFiP4M30W1cwq+7noEhq00rjzbcCsiXqYD77 JI14FhH3Vr4HjTr6CMcDI7JfWI7jR7LgANIiypEclxtqgUQbNVDWvLR1bwPq7iRcmwbv P7zC51iFoHE8gZJgJKhUr7m5/yQHZjMJKBymWi315xnMahACSSPWeRlhLJlRvk4Mu87u Q8egrA9ujbZm3hFyNZb51vCy+BoLIBAYE/QGb8NWZAsfBgLOxB5Pl6oG0C8TKJim2j7u YxjQ== 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 :message-id:date:subject:cc:to:from; bh=wMJVkXRUiilEkshs1Zu8fbFkenKrJ9kumCBVVUu/CCM=; b=ZRkJlC33kkTbHOFiO/iy1As3lVcQ2AuYL41izbH79UYSii+304KqO/0aj695jjzL00 IzltEb2rj3bWs3DORp0Cpb0+0fel5ebCJtes6GEKXbp0nNP6Ju87xZdsuL65rFV65Huk 0i5gq4E66rsU4yvgQpaUSUxn7lGHiLNN/N72BkPBRh58DKDm85pBzouqK/EeJNesiSK2 EwWdyblMsfLgK6KD7rWk6EEgI/aUfpl8GNsSa1Fwtes2iKtKFlClw6cNCr+UN8xhODHy PRrNaUzHIbhy0GUt4xEBoMY0vtjQnNjhMtygRQAiKprWO+OZxRn2ROeRBStnweKqXI9q 8VNw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si24695936jaj.123.2021.05.12.04.36.46; Wed, 12 May 2021 04:37:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbhELLhP (ORCPT + 99 others); Wed, 12 May 2021 07:37:15 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:2654 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhELLhO (ORCPT ); Wed, 12 May 2021 07:37:14 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4FgCNd5qHHzmVcB; Wed, 12 May 2021 19:33:53 +0800 (CST) Received: from huawei.com (10.175.127.227) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 19:35:58 +0800 From: Sun Ke To: , , CC: , , , Subject: [PATCH 0/2] fix a NULL pointer bug and simplify the code Date: Wed, 12 May 2021 19:43:29 +0800 Message-ID: <20210512114331.1233964-1-sunke32@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix a NULL pointer bug and simplify the code They should have been applied for 5.12, something was wrong. So, send them again. Sun Ke (2): nbd: Fix NULL pointer in flush_workqueue nbd: share nbd_put and return by goto put_nbd drivers/block/nbd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.25.4