summaryrefslogtreecommitdiff
path: root/arch/cris/kernel/ptrace.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-02-06 10:20:45 +0100
committerWilly Tarreau <w@1wt.eu>2012-03-17 14:03:58 +0100
commitc0a0cff0f5242f0485fb9a4689000c7be2db686c (patch)
treea590cf50fa9d4642f75bd5d752e4f85fe77e8b12 /arch/cris/kernel/ptrace.c
parentaa6333a71faab8a2c4cddd883e252987d19c7bcc (diff)
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>
Diffstat (limited to 'arch/cris/kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions