diff options
| author | Antonio Ospite <ospite@studenti.unina.it> | 2013-12-30 20:41:45 +0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-02-28 21:37:04 +0400 |
| commit | 840d94eacea399b3bfe2ebcbf75e0dec202cd922 (patch) | |
| tree | 2c906b0e6471582d63193191cc05d3629e78a4f6 /include/uapi | |
| parent | 340a30c5148d162ea054fd80112b864f14db9138 (diff) | |
| download | linux-840d94eacea399b3bfe2ebcbf75e0dec202cd922.tar.xz | |
[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 <julia.lawall@lip6.fr>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions
