lkml.org 
[lkml]   [2008]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: linux-next: Tree for July 30
On Thu, Jul 31, 2008 at 01:28:37PM -0700, Linus Torvalds wrote:
>
> + /* Some people get confused about size in bits vs bytes */
> + if (size >= len/8)
> + size = size/8;

People usually allocate single buffer (big enough) and the do a bunch
of tests so this condiion is likely to fire on EV_SW and similar event
types. I think it is safer to explicitely test for EV_KEY/0x1ff.

--
Dmitry


\
 
 \ /
  Last update: 2008-07-31 22:43    [W:0.061 / U:8.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site