From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Ball Subject: Re: [PATCH 1/2] mmc: Avoid null pointer dereference Date: Wed, 09 May 2012 20:54:51 -0400 Message-ID: <873978n9d0.fsf@laptop.org> References: <1334176305-6183-1-git-send-email-philippedeswert@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from void.printf.net ([89.145.121.20]:60874 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756907Ab2EJAyn (ORCPT ); Wed, 9 May 2012 20:54:43 -0400 In-Reply-To: (Namjae Jeon's message of "Thu, 10 May 2012 09:43:06 +0900") Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Namjae Jeon Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Philippe De Swert Hi, On Wed, May 09 2012, Namjae Jeon wrote: > Hi. Chris. > > Would you check this patch ? > > Thanks. > > 2012/4/12, Namjae Jeon : >> 2012/4/12 Philippe De Swert : >>> After the null check on md the code jumped to cmd_done, which then >>> will dereference md in mmc_blk_put. This patch avoids the possible >>> null pointer dereference in that case. >>> >>> Signed-off-by: Philippe De Swert >> This patch is good also. >> Reviewed-by: Namjae Jeon Thanks for the reminder -- pushed to mmc-next for 3.5. - Chris. -- Chris Ball One Laptop Per Child