Dan Carpenter c0a0cff0f5 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>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2012-03-17 14:03:58 +01:00
..
2008-07-24 10:47:41 -07:00
2012-02-11 15:40:53 +01:00
2009-12-08 11:17:31 -08:00
2011-02-09 22:15:36 +01:00
2012-02-11 15:40:54 +01:00
2008-08-26 00:19:28 +10:00
2012-02-11 15:38:27 +01:00
2011-04-30 16:53:12 +02:00
2011-04-30 16:52:59 +02:00
2008-08-04 12:51:06 +09:00
2009-12-18 13:30:47 -08:00
2009-02-17 09:46:17 -08:00
2008-08-13 17:33:00 -07:00