From patchwork Sun Feb 27 11:38:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Buesch X-Patchwork-Id: 593181 X-Patchwork-Delegate: tony@atomide.com 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 p1RBcNwl004169 for ; Sun, 27 Feb 2011 11:38:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178Ab1B0LiV (ORCPT ); Sun, 27 Feb 2011 06:38:21 -0500 Received: from 80-190-117-144.ip-home.de ([80.190.117.144]:44924 "EHLO bu3sch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751937Ab1B0LiV (ORCPT ); Sun, 27 Feb 2011 06:38:21 -0500 Received: by bu3sch.de with esmtpsa (Exim 4.69) (envelope-from ) id 1PtexB-0000Wg-7u; Sun, 27 Feb 2011 12:38:21 +0100 Subject: [PATCH] omap-mmc: Fix possible NULL pointer deref From: Michael Buesch To: Tony Lindgren Cc: linux-omap Date: Sun, 27 Feb 2011 12:38:17 +0100 Message-ID: <1298806697.30857.5.camel@marge> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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]); Sun, 27 Feb 2011 11:38:23 +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)