From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Tue, 26 May 2015 14:14:16 +0200 Subject: [U-Boot] [PATCH 1/2] pwm: imx: Prevent NULL pointer dereference In-Reply-To: <1432365408.17001.0.camel@ingics.com> References: <1432365408.17001.0.camel@ingics.com> Message-ID: <55646398.3030607@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 On 23/05/2015 09:16, Axel Lin wrote: > pwm_id_to_reg() can return NULL, so add NULL testing to prevent NULL pointer > dereference. > > Signed-off-by: Axel Lin > --- Applied to u-boot-imx, thanks! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================