diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-02-06 10:20:45 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2012-02-06 10:20:45 +0100 |
commit | 822bfa51ce44f2c63c300fdb76dc99c4d5a5ca9f (patch) | |
tree | c9eaa4357b5ebca49c47bd5a25beabaa992442aa /block/Kconfig | |
parent | 9fa73472ddbcd3da87d35a7f4566eaaf345f798e (diff) | |
download | linux-3.10-822bfa51ce44f2c63c300fdb76dc99c4d5a5ca9f.tar.gz linux-3.10-822bfa51ce44f2c63c300fdb76dc99c4d5a5ca9f.tar.bz2 linux-3.10-822bfa51ce44f2c63c300fdb76dc99c4d5a5ca9f.zip |
cdrom: use copy_to_user() without the underscores
"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.
Cc: stable@vger.kernel.com
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/Kconfig')
0 files changed, 0 insertions, 0 deletions