Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751455AbcLEHJp (ORCPT ); Mon, 5 Dec 2016 02:09:45 -0500 Received: from mga06.intel.com ([134.134.136.31]:22067 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbcLEHJo (ORCPT ); Mon, 5 Dec 2016 02:09:44 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,303,1477983600"; d="scan'208";a="794275761" Message-ID: <1480921774.2583.351.camel@gmail.com> Subject: Re: [PATCH 1/1] mtd: ubi: fix improper return value From: Artem Bityutskiy Reply-To: dedekind1@gmail.com To: Richard Weinberger , Joe Perches , Marek Vasut , Pan Bian , David Woodhouse , Brian Norris , Boris Brezillon , Cyrille Pitchen , linux-mtd@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Pan Bian Date: Mon, 05 Dec 2016 09:09:34 +0200 In-Reply-To: <0446c91c-ac84-3601-203a-9c2e7057f1f9@nod.at> References: <1480831930-5449-1-git-send-email-bianpan201604@163.com> <1480883619.4534.6.camel@perches.com> <0446c91c-ac84-3601-203a-9c2e7057f1f9@nod.at> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 395 Lines: 9 On Sun, 2016-12-04 at 21:52 +0100, Richard Weinberger wrote: > We should better think about how to get ubi_self_check_all_ff() > fixed. > When enabled on a modern NAND, vmalloc() is likely to fail now and > then > since len is the erase block size and can be up to a few mega bytes. I did an attempt to switch from virtually continuous buffers to an array of page pointers, but never finished.