commit | 89596f20bb5f0f32c37abd337d995080e04519c8 | [log] [tgz] |
---|---|---|
author | Kulikov Vasiliy <segooon@gmail.com> | Tue Aug 10 18:02:04 2010 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Aug 11 08:59:06 2010 -0700 |
tree | a4e0c01a5c8fa779229c6277aa7f836a1c09f2cf | |
parent | d929dc2bfd8a58c34f1df0680018fa8ea5caa907 [diff] |
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>