lkml.org 
[lkml]   [2010]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] drivers/net/usb/hso.c: prevent reading uninitialized memory
->tiocmget;
> >
> > + memset(&icount, 0, sizeof(struct serial_icounter_struct));
> > +
>
> Move the above to after the spinlocks.

Why - its a local variable ?

Easier to write

struct serial_icounter_struct icount = { 0 };

though


\
 
 \ /
  Last update: 2010-09-16 18:49    [W:0.051 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site