cdrom: use copy_to_user() without the underscores
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 6 Feb 2012 09:20:45 +0000 (10:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Mar 2012 00:34:35 +0000 (16:34 -0800)
commit6b06abace47c8ac0afb6cac21a133b85cd296e50
tree7927fca424b6951464bc3a3e6450007a641c2632
parent547740231f76185aadbef34dfa83c3e7dba3b34b
cdrom: use copy_to_user() without the underscores

commit 822bfa51ce44f2c63c300fdb76dc99c4d5a5ca9f upstream.

"nframes" comes from the user and "nframes * CD_FRAMESIZE_RAW" can wrap
on 32 bit systems.  That would have been ok if we used the same wrapped
value for the copy, but we use a shifted value.  We should just use the
checked version of copy_to_user() because it's not going to make a
difference to the speed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cdrom/cdrom.c