Re: [linux-usb-devel] [PATCH] usb_string fix

Greg KH (greg@kroah.com)
Mon, 5 Aug 2002 15:36:20 -0700


On Mon, Aug 05, 2002 at 11:42:09PM +0200, Andries.Brouwer@cwi.nl wrote:
>
> [I thought I sent this yesterday night, but don't see it on l-k,
> maybe I forgot. Sorry if I send it twice.]
>
> Things are indeed as conjectured, and I can reproduce the situation
> where usb_string() returns -EPIPE. Now that this is an internal
> error code for the USB subsystem, and not meant to get out to the
> user, I made these driverfs files empty in case of error.
> (While if there is no error but the string has length 0,
> the file will consist of a single '\n'.)
>
> One fewer random memory corruption. Unfortunately, there are more.

Thanks for the fix, I've applied it to my trees.

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