#ifndef COLORIZE_H #define COLORIZE_H #define colorize_start(fore) "\033[" __##fore "m" #define colorize_start_full(fore, back) "\033[" __##fore ";" __on_##back "m" #define colorize_end() "\033[" __reset "m" #endif /* COLORIZE_H */ '/>
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-10-21 19:57:57 +0900
committerUlf Hansson <ulf.hansson@linaro.org>2016-10-25 10:39:40 +0200
commit45c7a4908a307a023e237a64a3eadcafc4836493 (patch)
tree5b2d7e769f68865a6531fc2455ebf33345f25f01 /tools
parent07d9a380680d1c0eb51ef87ff2eab5c994949e69 (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 'tools')