]> git.hungrycats.org Git - linux/commit
[PATCH] read_ldt() neglects to check clear_user() return value
authorJesper Juhl <juhl-lkml@dif.dk>
Fri, 3 Sep 2004 03:26:40 +0000 (20:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Sep 2004 03:26:40 +0000 (20:26 -0700)
commit702e1a9bd2c3731533181c684da939b1c5c89171
treed573a17f6e1d36b775f710e0b0e689f296d15817
parent8bb9ab25204afa61a6d3957b25a3b389f29f113f
[PATCH] read_ldt() neglects to check clear_user() return value

akpm: It's a bit debatable.  The user passed in a buffer of a particular size,
and we successfully sopied the LDT info into it, but we got a fault when
clearing out the rest of the user's buffer.   Is that worth a -EFAULT?

I suppose so...

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/ldt.c