]> git.baikalelectronics.ru Git - kernel.git/commit
phy: exynos-mipi-video: fix check on array index
authorAntoine Ténart <antoine.tenart@free-electrons.com>
Mon, 12 May 2014 12:56:28 +0000 (14:56 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Mon, 12 May 2014 13:32:02 +0000 (19:02 +0530)
commit598889e2c6a04d96153ced12d09dc0a5b58bcc17
tree7e7c77d9bb5eb7ef8abbc28595f9e9daed31ac90
parent54264af0a96fbbc8f98787ea32ab14e4ca9a6e08
phy: exynos-mipi-video: fix check on array index

The phys array is of size EXYNOS_MIPI_PHYS_NUM. Trying to access the
index EXYNOS_MIPI_PHYS_NUM should return an error.

Fixes: 48f7d84f9d5c "phy: Add driver for Exynos MIPI CSIS/DSIM DPHYs"
Signed-off-by: Antoine Ténart <antoine.tenart@free-electrons.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-exynos-mipi-video.c