lkml.org 
[lkml]   [1998]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: fix for 2.1.x ni65 module bug (and other similar drivers)
Date
> browsing through more network driver sources shows that some drives
> don't initialize this name buffer, which may cause similar problems
> (btw, it's interesting (shocking?!) how many different code versions
> for the module/device initialisation can be found).

Why.. You are forcing a block of BSS (ie all zero) to be 0..

The quote fixes stuff is definitely right. Constant strings may not
be writable


> -static char lt_name[16];
> +static char lt_name[16] = { 0, };

?????????

> -static char nullname[8];
> +static char nullname[8] = { 0, };
??????????????


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.047 / U:1.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site