diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-10-21 19:57:57 +0900 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-10-25 10:39:40 +0200 |
commit | 45c7a4908a307a023e237a64a3eadcafc4836493 (patch) | |
tree | 5b2d7e769f68865a6531fc2455ebf33345f25f01 /include | |
parent | 07d9a380680d1c0eb51ef87ff2eab5c994949e69 (diff) |
mmc: dw_mmc-pltfm: fix the potential NULL pointer dereference
platform_get_resource can be returned the NULL pointer.
Then regs->start should be referred to NULL Pointer.
devm_ioremap_resource() checks whether res is NULL or not.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include')