From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 28 Apr 2010 13:30:23 +0200 Subject: [U-Boot] [PATCH 1/2] mtdparts: fix write through NULL pointer In-Reply-To: <4BD81816.2050601@denx.de> References: <1272445240-6147-1-git-send-email-wd@denx.de> <4BD81816.2050601@denx.de> Message-ID: <201004281330.23510.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefano, On Wednesday 28 April 2010 13:12:22 Stefano Babic wrote: > > The "mtdparts add" command wrote through a NULL pointer - on many > > systems this went unnoticed (PowerPC has writable RAM there, some ARM > > systems have ROM where a write has no effect), but on arm1136 > > (i.MX31) it crashed the system. > > > > Add appropriate checks. > > Hi Wolfgang, > > I have already sent a patch fixing this issue, > > http://lists.denx.de/pipermail/u-boot/2010-April/070347.html > > However, I preferred (easier way) to fix the calling function as the > device_parse(). I do not know if Stefan has already merged it. No, I haven't merged it. Since I was not sure if this has to go through one of my git repositories. Both cfi-flash and ubi don't really include this mtdparts stuff. Wolfgang, I suggest you apply your preferred version directly. Thanks. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de