summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl_check.c
diff options
context:
space:
mode:
authorKulikov Vasiliy <segooon@gmail.com>2010-08-11 03:02:04 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-11 17:59:06 +0200
commit89596f20bb5f0f32c37abd337d995080e04519c8 (patch)
treea4e0c01a5c8fa779229c6277aa7f836a1c09f2cf /kernel/sysctl_check.c
parenti2o: fix overflow of copy_to_user() (diff)
downloadlinux-89596f20bb5f0f32c37abd337d995080e04519c8.tar.xz
linux-89596f20bb5f0f32c37abd337d995080e04519c8.zip
i2o: check return code from put_user()
Check return value of put_user() and return -EFAULT if it failed. Original comment "We did a get user...so assuming mem is ok...is this bad?" is incorrect because memory can be read only. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/sysctl_check.c')
0 files changed, 0 insertions, 0 deletions