]> git.baikalelectronics.ru Git - kernel.git/commit
phy: hix5hd2-sata: Check return value of platform_get_resource
authorAxel Lin <axel.lin@ingics.com>
Mon, 2 Mar 2015 08:10:54 +0000 (16:10 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Thu, 12 Mar 2015 05:31:16 +0000 (11:01 +0530)
commit708411c3e6ab406322b1e8800e9d6f1e9492539b
treee16009bb682b20f6e4db74d1df62d7067666ea09
parentff605ace4bc55507e66015259944dceba8c3dd9b
phy: hix5hd2-sata: Check return value of platform_get_resource

This prevent NULL pointer dereference if res is NULL.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-hix5hd2-sata.c