lkml.org 
[lkml]   [2011]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Oops 1/2]Something wrong with copy_from_user() function
On 04/30/2011 02:13 AM, Harry Wei wrote:
> Hi us,
> When i was compiling 2.6.38.2 kernel. Something wrong happend to me.
> It shows like following.
>
> [...]
> Warning: call to 'copy_from_user_overflow' declared with attribute warning:
> copy_from_user buffer size is not provably correct.
> [...]
>
> See http://s1202.photobucket.com/albums/bb364/harrywei/Kernel/?action=view&current=report_bug.png for details.
> I tried to fix this warning, but i don't know how to deal with
> it. Can anyone help me.

That's a bug (maybe) in drivers/staging/vt6656/wpactl.c, which is a
staging driver and therefore liable to be imperfect. You could ignore
it or fix it and submit a patch.

(The bug isn't in copy_from_user -- it's an intentional warning in there
to indicate that something might be wrong with the caller.)

--Andy

>
> Thanks.
> Harry Wei.



\
 
 \ /
  Last update: 2011-04-30 14:45    [W:0.054 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site