* USB: add free_len=0 initialization to ipaq.c
@ 2004-07-27 18:40 Pete Zaitcev
0 siblings, 0 replies; only message in thread
From: Pete Zaitcev @ 2004-07-27 18:40 UTC (permalink / raw)
To: marcelo.tosatti; +Cc: zaitcev, linux-kernel
This is what happens when driver writers neglect memset after kmalloc.
Patch by Ganesh Varadaraja.
diff -urp -X dontdiff linux-2.4.27-rc3/drivers/usb/serial/ipaq.c linux-2.4.27-rc3-usbx/drivers/usb/serial/ipaq.c
--- linux-2.4.27-rc3/drivers/usb/serial/ipaq.c 2003-11-29 18:53:05.000000000 -0800
+++ linux-2.4.27-rc3-usbx/drivers/usb/serial/ipaq.c 2004-07-27 10:30:49.000000000 -0700
@@ -188,6 +188,7 @@ static int ipaq_open(struct usb_serial_p
port->private = (void *)priv;
priv->active = 0;
priv->queue_len = 0;
+ priv->free_len = 0;
INIT_LIST_HEAD(&priv->queue);
INIT_LIST_HEAD(&priv->freelist);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-27 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-27 18:40 USB: add free_len=0 initialization to ipaq.c Pete Zaitcev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®