Message ID | 20170415185553.16098-2-matias@cnexlabs.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C04A260138 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 15 Apr 2017 19:00:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2FEE25223 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 15 Apr 2017 19:00:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A798D2823D; Sat, 15 Apr 2017 19:00:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60E2625223 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 15 Apr 2017 19:00:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754883AbdDOS42 (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Sat, 15 Apr 2017 14:56:28 -0400 Received: from mail-dm3nam03on0041.outbound.protection.outlook.com ([104.47.41.41]:38016 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754147AbdDOS4Q (ORCPT <rfc822;linux-block@vger.kernel.org>); Sat, 15 Apr 2017 14:56:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cnexlabs.onmicrosoft.com; s=selector1-cnexlabs-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=goBn2fv0P0arSQoAOm3vXD2Fm7mJBiZxR/Cfh71ZDPU=; b=o4a9mx4ZiKt7dFcACi39Zg/xbCBC0IYQFm4OgeihapUOtywCMbMn9v3WlbhYl+BH7AZN1yjh0cvn4FnIM9IFza/dREhn6/qAvQ6LTt5mHgAkqU15L91aI28F404MMPn6qrdlRIMgqLXd9OU5bL5slbgclAQhjdSpM0xtlKMS6RU= Authentication-Results: fb.com; dkim=none (message not signed) header.d=none; fb.com; dmarc=none action=none header.from=cnexlabs.com; Received: from skyninja.cnexlabs.com (193.106.164.211) by CY4PR06MB2774.namprd06.prod.outlook.com (10.175.117.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Sat, 15 Apr 2017 18:56:12 +0000 From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= <matias@cnexlabs.com> To: <axboe@fb.com> CC: <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Christophe JAILLET <christophe.jaillet@wanadoo.fr>, =?UTF-8?q?Matias=20Bj=C3=B8rling?= <matias@cnexlabs.com> Subject: [GIT PULL 01/19] lightnvm: Fix error handling Date: Sat, 15 Apr 2017 20:55:35 +0200 Message-ID: <20170415185553.16098-2-matias@cnexlabs.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170415185553.16098-1-matias@cnexlabs.com> References: <20170415185553.16098-1-matias@cnexlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [193.106.164.211] X-ClientProxiedBy: AM5PR0701CA0069.eurprd07.prod.outlook.com (10.169.145.159) To CY4PR06MB2774.namprd06.prod.outlook.com (10.175.117.142) X-MS-Office365-Filtering-Correlation-Id: 3bbc0672-0371-4c14-65b3-08d4843116c6 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY4PR06MB2774; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 3:0Cn3pEF6Op0Ldah852MtT1MSIlmjsIcDs+waS8UDDbv+JEfw8Ue2L4jjGt3iQLa8peSUVXvlrq5Zqyu5Ckk4NXvtoys+02uS4khCautTt8fG5nbHZ88S2NCwudMe7K7z4sKM4DtWZdQLl966g9ss5spgyBNVxyXnK0aQGh0rkMgvWj8oA5i8BYpeL15ilPRmY894LS5unipaP60/aMTEMS3dRRxDxUZuGku0AYUC+oYs7ew5DPAk9fIhzWMxYhu94xzlVjN6ZLV5zCEerpHYDcat+XDWeujBB4DogHWMONXo9kUEhfWsiy/TMLnSYO81sqVUTJPOCXEcmwIEghQkLw==; 25:rZzElwYad3JRSjSW0E7RUUq/RpunXBUCMOTU6Egx19aB5W0JOe6Guex4jhDJusdMsaKiprkYmlUE6ZxFK2eVUMxk1rkyE/K+RyeIpxqSUys3NLRQz/RmJeMJw2aPusJ+q7XLLMSZXfeUK7fUmZ/TCSKh//3X+4jo2ao2Hd4JwT9+BMHW68zrksBYwN+v7AJI2YRHS/dI0YwDs6N0rHfHctQF91AvrXakYuaqhCjuyx6mIOWeSXUOdr2QPGO4ZuIBBJsmsaXJfY7XJ1YoSj+CE7mG6YU6Gq3Wz9lHNROl5qAH1DAgBOBD7jegwbHFBHSW0EWmpEr2Y1CaiefJBbF2KtO0/XD0/8NmCX2SVcGko3yhfcftwe+rer1KzDOWHGFeXuQTHv++07HtHFtzjndT1yvJjf8tTQM6iC6tHZl11sZ2HLzEkiS5ZQnhOwSs9kwui79MWgy8CjrDbHSWPclJDg== X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 31:12auvk3H50n3i0W8Z4xI+8QbCOlt+i1T8CX09QLk72vdVSvuLphyUJO2BrKNKRUJYrgplYnPlJcjUpVXb+WMG8HRy+lmkLDI+FIGgNIyoyo8l3R3ERg0XjLSlWHkJEqjZTzS99wuriGYCegstRL/VLLvzFbdCBKoUSvmbR4dZO4dCiwpEqNU8/MUg9Z98qVXQJthfvl6iHQNrt/Bt52R1k89mlDLjUlnr1xCpskO1EU=; 20:yY6Ik6d/+AiFU7c3DADlJGe05jQEst5VKg2+vMwoKVuK+ob4TdlF3bP2cyM6i3a/+tUFnYhTJ3hCq0XJ6xAWU6FnCMApVnZOjUb2pxhmWe8SqPQ8CkoSoFMrGPJqYLJnuuH4PRMmeyszyCiulVTUFvuu7IYctU6hww9PpMqt0n4= X-Microsoft-Antispam-PRVS: <CY4PR06MB2774E370CBC02645317912DABA040@CY4PR06MB2774.namprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(155761271638844); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201703061421075)(20161123555025)(6072148); SRVR:CY4PR06MB2774; BCL:0; PCL:0; RULEID:; SRVR:CY4PR06MB2774; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 4:YZbnaLX6jaEIKLBRfywKI49eBPEJb38vIOE3L4wlR+wm1fRcc4HhmzHi1WLnJJGSGN4Ll0+n7sWiSRtU5mgbVo3DbC1Qiz30ABX0ZkGLmXz2SeR8/7Jm3wuE1fg//LYQvUzG9MYWr6+n5zoWTG3e39TUdb0BpkIJ5XAxMwG4qPsYbVKanhHMCqBjiHWGr11C9yH8pUFPpAV0mqu5K6GipbdD1P+Y/P5ECHQiKtjZYyQV0/mtUXTRJ2ug6fXu7zOPu9VA3KnYTtGfkzzHBuY9Pj/MLi+G5gRQ9kBp5c42Y0rT8NkW5+apwSpxefubo2zK+HEbnPym/lwjeCCuxM2fL8MLWo/18GqgOEUia0Uc1kDywZAJuXNcHbyiw+SJeeP1u4E+JadG9XHq193sKbtyKMW2sIx1VGICKna9A4kJm5P1eWD/VipBpM9e6HztmdlaEckQHLAcud3aqz8YPZmtO1KUtVOZLAZ91j22CjqugIuILZ/YSG6ETisvaEJM/XjHhmGnN/FvMD9RMYQCpcioJ6YThhaGCSDPrOIKWxmL+sZ7TxCpEE/xKzana7eCrlcYdz227y9WmMtzWpEKvQqg4aTiFN+8rLITbVPnSoupc94EHvQrWPZCV//M6Y8IfgWZNIcVnzpgpVsrgOtU5wOUHLWb+p8buoo0h9+xhUUY1mJsjVqfk9Ltkl/+tVquvgP0tYXPw7rG0eXE0udEt+AcG1jwtESV/gGVPA6fxYguK5k= X-Forefront-PRVS: 02788FF38E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39450400003)(86362001)(305945005)(1076002)(6916009)(6666003)(25786009)(2950100002)(6486002)(2906002)(3846002)(6116002)(2870700001)(54906002)(189998001)(53936002)(53416004)(107886003)(110136004)(5660300001)(38730400002)(50986999)(76176999)(2351001)(4326008)(66066001)(5820100001)(23676002)(81166006)(47776003)(42186005)(36756003)(33646002)(50226002)(8676002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR06MB2774; H:skyninja.cnexlabs.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjA2TUIyNzc0OzIzOldHdjN5ZDZsMFdsTlRzSlF2QVFIWjNyNUM1?= =?utf-8?B?cS9mVTV0ck5Qb1NpTzVWK1ErdG5oeHVjMmlwckUxYjFXN25DVlN4NHA2TC92?= =?utf-8?B?K3NnOTluMGpRSWdza3doWDZiVWRhUUF1U254YTY2ODZialc3Y2t5czNkaCt1?= =?utf-8?B?SW1rQnBKMWVIWllMZHZJc2RSaTBjWVZqZDhEMU94bUJta2VoR3ZMN3NiMmpX?= =?utf-8?B?ZUlVem40VEpkUUpnRURjOXlaL1VkQUdIcDhFdi9tSUdwbXRqM1h4L3c4R2ZY?= =?utf-8?B?YlFuR3pLVVZnUnU5WFEvWHlWem44WFh6ZEVhZ0lMWDcySm1MNTZWMU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rKUgCcjbduOmIiWL3x3PKOF/Zd/C1Fzgg9HBGc/Ls2JdvKFEFm1otswtlGRSTT/zpdX4gkc4pdGsrJce+erYFzXI2mTPwzHel9wI9DkNxP/aZUlS2zuHo3zpUZp7F9LFAtA5n0LOJxPxYwG+VzfGMnKjTswPPHi6jwyuqYxVXJgMyy9X0I3GhkGi20k7dQf3JMuSWSEQfzGJGA03i5WaszYVxdE8k0cu/XZn3lScjyQlTE9xAbgTwFcHeLkxW2p6sRFihbu1nMdkSzZp+kU8XKN0EIw== X-OriginatorOrg: cnexlabs.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2017 18:56:12.6188 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR06MB2774 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/lightnvm/rrpc.c b/drivers/lightnvm/rrpc.c index e00b1d7..e68efbc 100644 --- a/drivers/lightnvm/rrpc.c +++ b/drivers/lightnvm/rrpc.c @@ -1275,8 +1275,10 @@ static int rrpc_bb_discovery(struct nvm_tgt_dev *dev, struct rrpc_lun *rlun) } nr_blks = nvm_bb_tbl_fold(dev->parent, blks, nr_blks); - if (nr_blks < 0) - return nr_blks; + if (nr_blks < 0) { + ret = nr_blks; + goto out; + } for (i = 0; i < nr_blks; i++) { if (blks[i] == NVM_BLK_T_FREE)