From: Dan Carpenter Date: Mon, 6 Feb 2012 09:20:45 +0000 (+0100) Subject: cdrom: use copy_to_user() without the underscores X-Git-Tag: v3.2.9~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1dd346c39c2a7d3ca7b9670e9504ae19d4e927a;p=pandora-kernel.git 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 Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed