diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-08-11 03:02:04 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 17:59:06 +0200 |
commit | 89596f20bb5f0f32c37abd337d995080e04519c8 (patch) | |
tree | a4e0c01a5c8fa779229c6277aa7f836a1c09f2cf /kernel/utsname_sysctl.c | |
parent | i2o: fix overflow of copy_to_user() (diff) | |
download | linux-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/utsname_sysctl.c')
0 files changed, 0 insertions, 0 deletions