[PATCH] adjust /dev/{kmem,mem,port} write handlers
authorJan Beulich <JBeulich@novell.com>
Sat, 25 Mar 2006 11:07:31 +0000 (03:07 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 25 Mar 2006 16:22:55 +0000 (08:22 -0800)
commitc654d60e8f0ea13e35b15cff54c0e473b8b162be
tree5c496d488666225909ab1eb7e116827cd013ae60
parent58bf6a2db2a4a1b41712674d9165510180259dec
[PATCH] adjust /dev/{kmem,mem,port} write handlers

The /dev/mem and /dev/kmem write handlers weren't fully POSIX compliant in
that they wouldn't always force the file pointer to be updated when
returning success status.

The /dev/port write handler was inconsistent with the /dev/mem and
/dev/kmem handlers in that when encountering a -EFAULT condition after
already having written a number of items it would return -EFAULT rather
than the number of bytes written.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/mem.c