]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
i2o: check return code from put_user()
authorKulikov Vasiliy <segooon@gmail.com>
Wed, 11 Aug 2010 01:02:04 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:06 +0000 (08:59 -0700)
commit89596f20bb5f0f32c37abd337d995080e04519c8
treea4e0c01a5c8fa779229c6277aa7f836a1c09f2cf
parentd929dc2bfd8a58c34f1df0680018fa8ea5caa907
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>
drivers/message/i2o/i2o_config.c