Re: fix for 2.1.x ni65 module bug (and other similar drivers)

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 14 Sep 1998 17:35:27 +0100 (BST)


> 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