commit | 45c7a4908a307a023e237a64a3eadcafc4836493 | [log] [tgz] |
---|---|---|
author | Jaehoon Chung <jh80.chung@samsung.com> | Fri Oct 21 19:57:57 2016 +0900 |
committer | Ulf Hansson <ulf.hansson@linaro.org> | Tue Oct 25 10:39:40 2016 +0200 |
tree | 5b2d7e769f68865a6531fc2455ebf33345f25f01 | |
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>