Re: usb: replace __setup("nousb") with __module_param_call

From: Pete Zaitcev
Date: Tue Jan 03 2006 - 02:55:05 EST


On Tue, 3 Jan 2006 01:47:46 -0500, Dmitry Torokhov <dtor_core@xxxxxxxxxxxxx> wrote:

> +static int __init obsolete_checksetup(char *line, int len)
> - int n = strlen(p->str);
> - if (!strncmp(line, p->str, n)) {
> + if (!strncmp(line, p->str, len) && len == strlen(p->str)) {

This looks like it should work, with the disclaimer that I am not
infallible.

But even if it does, my patch saved reading, so I think it should be
applied as well.

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