From: Xiubo Li
Date: Sun, 28 Sep 2014 03:35:25 +0000 (+0800)
Subject: regmap: debugfs: fix possbile NULL pointer dereference
X-Git-Tag: fixes-for-v3.18-merge-window~32^2~3^2~1
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c98e0c1cc6b8e86f1978286c3d4e0769ee9d733;p=pandora-kernel.git
regmap: debugfs: fix possbile NULL pointer dereference
If 'map->dev' is NULL and there will lead dev_name() to be NULL pointer
dereference. So before dev_name(), we need to have check of the map->dev
pionter.
We also should make sure that the 'name' pointer shouldn't be NULL for
debugfs_create_dir(). So here using one default "dummy" debugfs name when
the 'name' pointer and 'map->dev' are both NULL.
Signed-off-by: Xiubo Li
Signed-off-by: Mark Brown
Cc: stable@vger.kernel.org
---
Reading git-diff-tree failed