From patchwork Sun Jan 30 19:29:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Weil X-Patchwork-Id: 518291 X-Patchwork-Delegate: khilman@deeprootsystems.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 p0UNUCQc007293 for ; Sun, 30 Jan 2011 23:32:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752853Ab1A3T35 (ORCPT ); Sun, 30 Jan 2011 14:29:57 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:62362 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752771Ab1A3T34 (ORCPT ); Sun, 30 Jan 2011 14:29:56 -0500 Received: from flocke.fritz.box (p5086E681.dip.t-dialin.net [80.134.230.129]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MQA5P-1PoHw9450V-004vJI; Sun, 30 Jan 2011 20:29:47 +0100 Received: from stefan by flocke.fritz.box with local (Exim 4.72) (envelope-from ) id 1Pjcy2-0001DJ-1w; Sun, 30 Jan 2011 20:29:46 +0100 From: Stefan Weil To: Tony Lindgren Cc: Stefan Weil , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/23] arm: Fix possible null pointer read access Date: Sun, 30 Jan 2011 20:29:38 +0100 Message-Id: <1296415778-4638-1-git-send-email-weil@mail.berlios.de> X-Mailer: git-send-email 1.7.2.3 X-Provags-ID: V02:K0:aWDSUlRUAnN5IhHbaCxkje+O0LzTW6TrgCFv+GV44bH PQ/iT1RYPlLe3M7PX1verHyayNqCkfpk1XQYfd5dUoqbFgeGc5 ukp2eWkGDVsy1a568uQg+PmHe/4tZU2MoJaaZ+EXhzCtUVGnPC 6i1fikNtYFmb/TY91VkmFdm9ItQUuUzn++3JcW9/OkWRxAQPuX 01Oy7AbFJ8Ei0abBqLwqodw6f3IswhZUUAXU8yx6NZqChDCsF/ SuwHMSJrext3K 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, 30 Jan 2011 23:32:02 +0000 (UTC) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 77ecebf..af39d17 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -780,8 +780,7 @@ static int omap_sr_autocomp_show(void *data, u64 *val) struct omap_sr *sr_info = (struct omap_sr *) data; if (!sr_info) { - pr_warning("%s: omap_sr struct for sr_%s not found\n", - __func__, sr_info->voltdm->name); + pr_warning("%s: omap_sr struct not found\n", __func__); return -EINVAL; } @@ -795,8 +794,7 @@ static int omap_sr_autocomp_store(void *data, u64 val) struct omap_sr *sr_info = (struct omap_sr *) data; if (!sr_info) { - pr_warning("%s: omap_sr struct for sr_%s not found\n", - __func__, sr_info->voltdm->name); + pr_warning("%s: omap_sr struct not found\n", __func__); return -EINVAL; }