HID: roccat: Fix an error message when reading more data from bin attributes
authorStefan Achatz <erazor_de@users.sourceforge.net>
Thu, 6 Jan 2011 08:00:41 +0000 (09:00 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Jan 2011 10:28:53 +0000 (11:28 +0100)
Using cat or something to read from binary attributes would try to do an
additional read with offset equal to filesize. This resulted in an invalid
attribute error. This is fixed by giving the right answer instead of EINVAL.

Signed-off-by: Stefan Achatz <erazor_de@users.sourceforge.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found