]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: pci: meye: set error code on failures
authorPan Bian <bianpan2016@163.com>
Sun, 4 Dec 2016 05:40:06 +0000 (03:40 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 10:01:30 +0000 (08:01 -0200)
commit0395f760f081ebcaa3c2969aa3c290eb1e2d65cb
tree26c9877992f86eca4190f7beeb7dbfe8db6b60e7
parent4e206af8a3faa223962ae4485282f35730d3b40d
[media] media: pci: meye: set error code on failures

The value of return variable ret is 0 on some error paths, for example,
when pci_resource_start() returns a NULL pointer. 0 means no error in
this context, which is contrary to the fact. This patch fixes the bug.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=189011

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/meye/meye.c