[lkml]   [1998]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: fix for 2.1.x ni65 module bug (and other similar drivers)
> 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
Please read the FAQ at

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