]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] s390: fix strnlen_user return value
authorGerald Schaefer <geraldsc@de.ibm.com>
Wed, 8 Mar 2006 05:55:37 +0000 (21:55 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 8 Mar 2006 22:14:01 +0000 (14:14 -0800)
commit614bb2f98ba5b2282bc47e3c252d6bbfc8ec787e
treece19fbf200bcef3d0802f59fb5aed5b17005c089
parent2a5a02740cb18d3a472e0116ff815a8329f7e57f
[PATCH] s390: fix strnlen_user return value

strnlen_user is supposed to return then length count + 1 if no terminating \0
is found, and it should return 0 on exception.  Found by David Howells
<dhowells@redhat.com>.

Signed-off-by: Gerald Schaefer <geraldsc@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-By: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/s390/lib/uaccess.S
arch/s390/lib/uaccess64.S