]> git.baikalelectronics.ru Git - kernel.git/commit
[media] staging: davinci_vpfe: fix error check
authorLevente Kurusa <levex@linux.com>
Sat, 15 Feb 2014 10:17:11 +0000 (07:17 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 16:36:28 +0000 (13:36 -0300)
commitd9974c39755a316c42531934cc989841e4f295c3
tree6d4598af13794459f7894c67d96fbfde73996f9a
parentaae7653bf25b4d86cac2f69a27da76da449815c2
[media] staging: davinci_vpfe: fix error check

The check would check the pointer, which is never less than 0.
According to the error message, the correct check would be
to check the return value of ipipe_mode. Check that instead.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Levente Kurusa <levex@linux.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/staging/media/davinci_vpfe/dm365_ipipe_hw.c