phy: exynos5-usbdrd: Fix off-by-one valid value checking for args->args[0]
authorAxel Lin <axel.lin@ingics.com>
Fri, 27 Feb 2015 15:44:24 +0000 (23:44 +0800)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 13 Mar 2015 11:44:36 +0000 (17:14 +0530)
commitecd5fb026d460bf8fb883254fb9bd01a1085c185
tree623239b4edc7125e3b903d18bdd2a807ba93d0f6
parent2f1bce487cd0a02623cff3d877940f9a2026341c
phy: exynos5-usbdrd: Fix off-by-one valid value checking for args->args[0]

Current code uses args->args[0] as array subscript of phy_drd->phys[].
So the valid value range for args->args[0] is 0 ... EXYNOS5_DRDPHYS_NUM - 1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed by: Vivek Gautam <gautam.vivek@samsung.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-exynos5-usbdrd.c