diff options
author | Arnd Bergmann <arnd@arndb.de> | 2006-10-24 18:01:42 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-10-25 12:10:41 +1000 |
commit | 274cef5e9d0e494ad84dbc28513b0bb6e3d847ae (patch) | |
tree | 9d10487ca02ed71a9f95412d5ae949a44c15a37a /REPORTING-BUGS | |
parent | f6b301b89b7bf0bb872da4f37dc28240413cbae7 (diff) |
[POWERPC] spufs: fix another off-by-one bug in spufs_mbox_read
Currently, spufs_mbox_read transfers more bytes than requested on a
read. If you ask for four bytes, you get eight. This fixes it to
transfer the largest multiple of four bytes that is less than or equal
to the number you asked for.
Note: one nasty property of this file in spufs is that you can only
read multiples of four bytes in the first place, since there is no way
to atomically put back a few bytes into the hardware register. Thus,
reading less than four bytes returns -EINVAL. Asking for more than
four returns the largest possible multiple of four.
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions