staging: dgrp: dgrp_tty.c: Audit the return values of get/put_user()
authorKumar Amit Mehta <gmate.amit@gmail.com>
Thu, 22 Nov 2012 19:46:35 +0000 (01:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2012 00:07:01 +0000 (16:07 -0800)
commitd53c57dca2ccb540cceb0b1a228f11e1325cecde
tree7313040ccf9000665d6a26c565754ea571e4682a
parent3ba89e96610b85b5a2f3a146f65342e38af27a79
staging: dgrp: dgrp_tty.c: Audit the return values of get/put_user()

fix for missing audits for return values of get_user() and put_user().
Inspecting the return values of get/put_user() would make the access_ok()
redundant, hence removing calls to access_ok() in such scenarios.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_tty.c