]> git.karo-electronics.de Git - mv-sheeva.git/commit
V4L/DVB: gspca_main: some input error handling fixes
authorHans de Goede <hdegoede@redhat.com>
Fri, 19 Feb 2010 07:41:40 +0000 (04:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:09 +0000 (15:11 -0300)
commit10ee2402004d03b31555aad7badf7e499fa686d3
tree3d12e11eeaaa9a96362a99de3e0fa6ca76399bc1
parentac82f59f9cc6aae3300430fcc3422e59f83d89ae
V4L/DVB: gspca_main: some input error handling fixes

2 small changes to input device error handling:
1) Make it fatal when we fail to create an input device (it is either this
   or add checks for gspca_dev->input_dev being NULL in a lot of places)
2) Since we allow gspca_input_create_urb() to fail everywhere we call it,
   and thus never check its return value, make it void.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c