68328serial: check return value of copy_*_user() instead of access_ok()
authorKulikov Vasiliy <segooon@gmail.com>
Sun, 1 Aug 2010 06:29:06 +0000 (10:29 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Aug 2010 01:17:22 +0000 (18:17 -0700)
commit5d56356a2c9f5e96efe7a095cbf9b6fee8265d22
tree047e5aef4997096cdfdf8a536a23094d81be28e1
parent80d04f22b0869a1145b36a90a83a79603ac92be8
68328serial: check return value of copy_*_user() instead of access_ok()

As copy_*_user() calls access_ok() it should not be called explicitly.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/68328serial.c