From: Antonio Ospite Date: Mon, 30 Dec 2013 16:41:45 +0000 (-0300) Subject: [media] gspca_kinect: fix kinect_read() error path X-Git-Tag: v3.15-rc1~85^2~327 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=840d94eacea399b3bfe2ebcbf75e0dec202cd922;p=pandora-kernel.git [media] gspca_kinect: fix kinect_read() error path The error checking code relative to the invocations of kinect_read() does not return the actual return code of the function just called, it returns "res" which still contains the value of the last invocation of a previous kinect_write(). Return the proper value, and while at it also report with -EREMOTEIO the case of a partial transfer. Reported-by: Julia Lawall Signed-off-by: Antonio Ospite Signed-off-by: Hans de Goede Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed