From patchwork Wed Mar 2 18:18:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Buesch X-Patchwork-Id: 603891 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p22IIUd2025444 for ; Wed, 2 Mar 2011 18:18:30 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756348Ab1CBSS3 (ORCPT ); Wed, 2 Mar 2011 13:18:29 -0500 Received: from 80-190-117-144.ip-home.de ([80.190.117.144]:55633 "EHLO bu3sch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754924Ab1CBSS2 (ORCPT ); Wed, 2 Mar 2011 13:18:28 -0500 Received: by bu3sch.de with esmtpsa (Exim 4.69) (envelope-from ) id 1Puqd2-0002dl-53; Wed, 02 Mar 2011 19:18:28 +0100 Subject: [PATCH] omap-mmc: Fix possible NULL pointer deref From: Michael Buesch To: Chris Ball Cc: linux-omap , linux-mmc@vger.kernel.org, Tony Lindgren Date: Wed, 02 Mar 2011 19:18:23 +0100 Message-ID: <1299089903.13604.19.camel@marge> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 02 Mar 2011 18:18:35 +0000 (UTC) Index: linux-omap-2.6/drivers/mmc/host/omap.c =================================================================== --- linux-omap-2.6.orig/drivers/mmc/host/omap.c 2011-02-27 12:32:03.051061690 +0100 +++ linux-omap-2.6/drivers/mmc/host/omap.c 2011-02-27 12:32:27.622530875 +0100 @@ -832,7 +832,7 @@ return IRQ_HANDLED; } - if (end_command) + if (end_command && host->cmd) mmc_omap_cmd_done(host, host->cmd); if (host->data != NULL) { if (transfer_error)