Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754146Ab3HVTj7 (ORCPT ); Thu, 22 Aug 2013 15:39:59 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:35990 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753105Ab3HVTj6 (ORCPT ); Thu, 22 Aug 2013 15:39:58 -0400 Date: Thu, 22 Aug 2013 12:39:49 -0700 From: Brian Norris To: Libo Chen Cc: dwmw2@infradead.org, Andy Shevchenko , Li Zefan , artem.bityutskiy@linux.intel.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , LKML , Bill Pemberton , linux-mtd@lists.infradead.org, hauke@hauke-m.de Subject: Re: [PATCH RESEND 1/2] mtd: bcm47: convert kzalloc to avoid invalid access Message-ID: <20130822193949.GA14837@ld-irv-0074.broadcom.com> References: <51A6B7D4.7040202@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51A6B7D4.7040202@huawei.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 672 Lines: 19 On Thu, May 30, 2013 at 10:22:12AM +0800, Libo Chen wrote: > > mtd is just member of bcm47xxsflash, so we should free bcm47xxsflash not its member. > So I use devm_kazlloc instead of kazlloc to avoid it. > > * Changelog: > convert to devm_kzalloc > > Signed-off-by: Libo chen > Suggested-by: Andy Shevchenko Resolved a conflict and pushed to l2-mtd.git. Thanks! Brian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/