Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1252957imu; Wed, 28 Nov 2018 06:56:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vx/dVpdhCWGzrFpPqSs4KFpThAdiENvCxlIlH8Qrrt19cfYMsZY2a+yqRyfzFt7Cgx/bi9 X-Received: by 2002:a65:6215:: with SMTP id d21mr33417806pgv.289.1543417006730; Wed, 28 Nov 2018 06:56:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543417006; cv=none; d=google.com; s=arc-20160816; b=0PIU/odYhOey5eaZxyHdVhtAg/0noYOuQqgEJistDp//cboZ8T8wf3+BWLhLvfo871 XmNhKx1yBGWubgGb2rTLyKox6Bh0/0AurWgY6gIpVyc7Cpv0OKofE5RR8m+I543Lmv3j +Vh68oUkndEYsHi1QngJ3LFIkvuJbkcVVBR267rMiwzRlR399T38shsQJHCEpZcXXbWv 8rcx4cSmo/EE3B4JKcPJJlNEAtFA8VPZ2QhSnW6M87gdnBON4kYZlglWwrcVYifg0TDP IBrcF1PusnVEhJG+d5BOlfzLEK5PM8wFNqi5wFWoMEccKdVaKfAYJxE/M5bnEKELgeGd GjdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=DxMGouqQJOYOTEwD66bSR3J9X9FQ+D58TU01IBNDOQE=; b=uT8679tNey4H20xK/ghd3MkvQH5YWvLi9tORbNc+0up5f0zrb3JNiD0KsH7PbZG/Ai /sLS2qk8QHctzUalXPWTGzfhQDr2LtY2DKrFkjj+RHksXraN+hD9uEu33ZEHBIu/nZvQ h9gh6qt3oo12EkIIgjCImZRohdmnGA+yKgPJD7hErCxzgmEwnuVCxA8VqzyuZxxqh83S W/hZvHdA78dNp8Sucr1ay2OwB7hT8wWdg/S5T6iXFZR2CyBAyTlLSVwKUT8gRZVFD47I n+mN0m3Pa1VigaPRAxVpbFV2oP5D6velzgJLc1/Ifvjp+Kk+fVwrexcMy77RRB9l+WW2 cEIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si7873388pfi.12.2018.11.28.06.56.30; Wed, 28 Nov 2018 06:56:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728756AbeK2B5o (ORCPT + 99 others); Wed, 28 Nov 2018 20:57:44 -0500 Received: from skedge03.snt-world.com ([91.208.41.68]:55886 "EHLO skedge03.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728262AbeK2B5o (ORCPT ); Wed, 28 Nov 2018 20:57:44 -0500 Received: from sntmail12r.snt-is.com (unknown [10.203.32.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge03.snt-world.com (Postfix) with ESMTPS id C412B67A7D5; Wed, 28 Nov 2018 15:55:45 +0100 (CET) Received: from sntmail12r.snt-is.com (10.203.32.182) by sntmail12r.snt-is.com (10.203.32.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Wed, 28 Nov 2018 15:55:45 +0100 Received: from sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305]) by sntmail12r.snt-is.com ([fe80::e551:8750:7bba:3305%5]) with mapi id 15.01.1466.003; Wed, 28 Nov 2018 15:55:45 +0100 From: Schrempf Frieder To: Boris Brezillon CC: Miquel Raynal , Richard Weinberger , "stable@vger.kernel.org" , "David Woodhouse" , Brian Norris , Marek Vasut , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] mtd: nand: Fix memory allocation in nanddev_bbt_init() Thread-Topic: [PATCH] mtd: nand: Fix memory allocation in nanddev_bbt_init() Thread-Index: AQHUhiUV+bbi1IymHUOKrtHQUP0AvaVlM7kAgAAEGQA= Date: Wed, 28 Nov 2018 14:55:45 +0000 Message-ID: <7634bb45-6167-31e8-e169-b5c9bf7e2fc5@kontron.de> References: <1543304637-27308-1-git-send-email-frieder.schrempf@kontron.de> <20181128154104.577d5923@bbrezillon> In-Reply-To: <20181128154104.577d5923@bbrezillon> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.9.43] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: C412B67A7D5.AEE5A X-SnT-MailScanner: Found to be clean X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: boris.brezillon@bootlin.com, computersforpeace@gmail.com, dwmw2@infradead.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, miquel.raynal@bootlin.com, richard@nod.at, stable@vger.kernel.org X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQm9yaXMsDQoNCk9uIDI4LjExLjE4IDE1OjQxLCBCb3JpcyBCcmV6aWxsb24gd3JvdGU6DQo+ IE9uIFR1ZSwgMjcgTm92IDIwMTggMDc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