From: Hans Verkuil Date: Wed, 29 May 2013 06:55:15 +0000 (-0300) Subject: [media] hdpvr: improve error handling X-Git-Tag: v3.11-rc1~17^2~223 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f454d82e5958e59c16580b9b4531f4bbc7231f7;p=pandora-kernel.git [media] hdpvr: improve error handling get_video_info() should never return EFAULT, instead it should return the low-level usb_control_msg() error. Add a valid field to the hdpvr_video_info struct so the driver can easily check if a valid format was detected. Whenever get_video_info is called and it returns an error (e.g. usb_control_msg failed), then return that error to userspace as well. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed