From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from exprod5og112.obsmtp.com ([64.18.0.24]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1TfaRg-0004rY-P7 for barebox@lists.infradead.org; Mon, 03 Dec 2012 18:08:46 +0000 From: Renaud Barbier Date: Mon, 3 Dec 2012 18:08:17 +0000 Message-Id: <1354558114-28799-2-git-send-email-renaud.barbier@ge.com> In-Reply-To: <1354558114-28799-1-git-send-email-renaud.barbier@ge.com> References: <1354558114-28799-1-git-send-email-renaud.barbier@ge.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 01/18] fs/fs.c: check that fsdev->cdev->dev is not NULL To: barebox@lists.infradead.org Signed-off-by: Renaud Barbier --- fs/fs.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index dc3a6e3..3065440 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1108,7 +1108,8 @@ static int fs_probe(struct device_d *dev) return ret; if (fsdev->cdev) { - dev_add_child(fsdev->cdev->dev, &fsdev->dev); + if (fsdev->cdev->dev) + dev_add_child(fsdev->cdev->dev, &fsdev->dev); fsdev->parent_device = fsdev->cdev->dev; } -- 1.7.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox