Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1384477pxb; Thu, 4 Nov 2021 01:03:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAq2wtIgShDnRkaR5gP2uEy0669K82MAAVDRLNGvyWtYEI4E8XQKq0U9mENSw+LFFTV9/b X-Received: by 2002:a92:d790:: with SMTP id d16mr30408196iln.235.1636013000063; Thu, 04 Nov 2021 01:03:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636013000; cv=none; d=google.com; s=arc-20160816; b=huQfrh46OwkFiEUF2DkpxrE2nxjLncQsXdTBliQRl/fRUu1DvGy4/tL/KKuUBWEJNW Eo0vUpgryd0fx13cbyuhmWXkWI7qAgPKbGGdsrZ9NPzriEDK2Ry2IFdXdLNJGebiqhrO Qd6We9jAx2exmDAIgTk1ah0KviJLiOIUDn+CgDFZDLAn74grzqiWmoja4Q+vBd7PIKdw eCLmX6VEPGKlUajWiVruWOw7gb8Wi8N0C03oS1riRC6J2G7TKoSWnXUyHfqCtQRseSqH 252RKOGLJAijJv/mddNthgBrQrNpaw6RS/zl5lRnhXQ5HZ527RXaSuJ9cRPbgm5pcIG3 Fsmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=aKPbbyMn9ea+oo0zXZ4nN24oFGzDH/TwJgHAp/7ow+8=; b=ZcEb8MknATvggaX37WmEc02n7a9cfOub8aKcnLfOX/gh9YH2G/ZbJ0VW8QFep1EqvE dXVV/WznhU29DkBL0AcDjTnLcZSaLN+ubnhOTZM4foBTctRbHV/OZjb7tTbMrQ7pMPpu VIwZobdymPTzDBOf4PEd+Cns4H1al0/bjLtDOlcw5ZxEF1lvrFVSGW+dGPJgMwCB/nn0 Shs6XCRwdN1QotkRTVqLKhZa1Bc9xFdy+L5gkSGPl0ZHY+/CTTQgPhFC5Xm51hhO866d n8PWVvaDEZWnhrqJKus5wQmp0l/fCo1IH9nPu/R+yos0wAf8nQoNbgEezdR3E1gpIeFy h0JA== 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 w11si10478613iov.94.2021.11.04.01.03.07; Thu, 04 Nov 2021 01:03:20 -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 S230319AbhKDID6 (ORCPT + 99 others); Thu, 4 Nov 2021 04:03:58 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:30919 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230344AbhKDID5 (ORCPT ); Thu, 4 Nov 2021 04:03:57 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4HlGDX6zckzcb78; Thu, 4 Nov 2021 15:56:28 +0800 (CST) Received: from dggpeml500019.china.huawei.com (7.185.36.137) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 4 Nov 2021 16:01:12 +0800 Received: from huawei.com (10.175.124.27) by dggpeml500019.china.huawei.com (7.185.36.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.15; Thu, 4 Nov 2021 16:01:12 +0800 From: Wu Bo To: CC: , , , Subject: [PATCH 0/2] add error handling support for add_disk() Date: Thu, 4 Nov 2021 16:33:17 +0800 Message-ID: <1636014799-20156-1-git-send-email-wubo40@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpeml500019.china.huawei.com (7.185.36.137) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We never checked for errors on add_disk() as this function returned void. Now that is fixed. So add error handling support for add_disk(). Wu Bo (2): brd: add error handling support for add_disk() z2ram: add error handling support for add_disk() drivers/block/brd.c | 7 ++++++- drivers/block/z2ram.c | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) -- 1.8.3.1