lkml.org 
[lkml]   [2004]   [May]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [2.6.7-rc1-mm1] lp int copy_to_user replaced
From
Date
On Thu, 2004-05-27 at 19:32, FabF wrote:
> Andrew,
>
> Here's a patch to have standard __put_user for integer transfers in lp
> driver.Is it correct ?

no it's not. You need to use put_user() not __put_user() at least, to
make sure the destination address is checked to not be in kernel
space...

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.046 / U:0.412 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site