Re: [PATCH] regmap: debugfs: fix possbile NULL pointer dereference

2014-09-28 Thread Mark Brown
On Sun, Sep 28, 2014 at 11:35:25AM +0800, Xiubo Li wrote: > 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. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH] regmap: debugfs: fix possbile NULL pointer dereference

2014-09-28 Thread Mark Brown
On Sun, Sep 28, 2014 at 11:35:25AM +0800, Xiubo Li wrote: 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. Applied, thanks. signature.asc Description: Digital signature

[PATCH] regmap: debugfs: fix possbile NULL pointer dereference

2014-09-27 Thread Xiubo Li
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

[PATCH] regmap: debugfs: fix possbile NULL pointer dereference

2014-09-27 Thread Xiubo Li
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