]> git.baikalelectronics.ru Git - kernel.git/commit
[media] go7007: fix return 0 for unsupported devices in go7007_usb_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 19 Jun 2013 19:57:40 +0000 (16:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Jun 2013 14:33:06 +0000 (11:33 -0300)
commitcd479dba76dece139aee20b1e58a0e22616f9731
tree9b3f5858e47710e1dc445addd20e5b0da2c64008
parent292656b19e96f3e8ac1a0314243bbacd3927b031
[media] go7007: fix return 0 for unsupported devices in go7007_usb_probe()

probe() should not return 0 for unsupported devices, but go7007_usb_probe() does.
The patch fixes it to return -ENODEV.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/go7007/go7007-usb.c