From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761500Ab2EJAyp (ORCPT ); Wed, 9 May 2012 20:54:45 -0400 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 From: Chris Ball To: Namjae Jeon Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Philippe De Swert Subject: Re: [PATCH 1/2] mmc: Avoid null pointer dereference References: <1334176305-6183-1-git-send-email-philippedeswert@gmail.com> Date: Wed, 09 May 2012 20:54:51 -0400 In-Reply-To: (Namjae Jeon's message of "Thu, 10 May 2012 09:43:06 +0900") Message-ID: <873978n9d0.fsf@laptop.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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