From patchwork Tue Oct 20 13:22:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 54947 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9KDOGn5014110 for ; Tue, 20 Oct 2009 13:24:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752048AbZJTNX2 (ORCPT ); Tue, 20 Oct 2009 09:23:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752023AbZJTNX1 (ORCPT ); Tue, 20 Oct 2009 09:23:27 -0400 Received: from smtp.nokia.com ([192.100.105.134]:63421 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751942AbZJTNX1 (ORCPT ); Tue, 20 Oct 2009 09:23:27 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9KDNSLs024812; Tue, 20 Oct 2009 08:23:30 -0500 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 20 Oct 2009 16:23:26 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 20 Oct 2009 16:23:25 +0300 Received: from localhost.localdomain (tumpelo.ntc.nokia.com [172.22.144.93]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n9KDNMAS027940; Tue, 20 Oct 2009 16:23:23 +0300 From: Ilkka Koskinen To: sameo@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: [Resend PATCH 1/2] twl4030: Do not dereference null pointer in error path Date: Tue, 20 Oct 2009 16:22:52 +0300 Message-Id: <1256044973-14548-1-git-send-email-ilkka.koskinen@nokia.com> X-Mailer: git-send-email 1.6.0.4 X-OriginalArrivalTime: 20 Oct 2009 13:23:25.0919 (UTC) FILETIME=[813DBEF0:01CA5188] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/drivers/mfd/twl4030-core.c b/drivers/mfd/twl4030-core.c index e424cf6..8cf0a02 100644 --- a/drivers/mfd/twl4030-core.c +++ b/drivers/mfd/twl4030-core.c @@ -792,7 +792,7 @@ twl4030_probe(struct i2c_client *client, const struct i2c_device_id *id) twl->client = i2c_new_dummy(client->adapter, twl->address); if (!twl->client) { - dev_err(&twl->client->dev, + dev_err(&client->dev, "can't attach client %d\n", i); status = -ENOMEM; goto fail;