diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-02-27 16:44:24 +0100 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2015-03-13 12:44:36 +0100 |
commit | ecd5fb026d460bf8fb883254fb9bd01a1085c185 (patch) | |
tree | 623239b4edc7125e3b903d18bdd2a807ba93d0f6 /drivers/phy/phy-spear1310-miphy.c | |
parent | phy: Find the right match in devm_phy_destroy() (diff) | |
download | linux-ecd5fb026d460bf8fb883254fb9bd01a1085c185.tar.xz linux-ecd5fb026d460bf8fb883254fb9bd01a1085c185.zip |
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>
Diffstat (limited to 'drivers/phy/phy-spear1310-miphy.c')
0 files changed, 0 insertions, 0 deletions