From: Stefan Achatz Date: Thu, 6 Jan 2011 08:00:41 +0000 (+0100) Subject: HID: roccat: Fix an error message when reading more data from bin attributes X-Git-Tag: v2.6.39-rc1~429^2^5~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd82be6c0a359fc706a805a49b1f167af21e63ea;p=pandora-kernel.git HID: roccat: Fix an error message when reading more data from bin attributes 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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed