From: Dan Carpenter Date: Wed, 13 Dec 2006 08:03:38 +0000 (-0800) Subject: USB: devio.c add missing INIT_LIST_HEAD() X-Git-Tag: v2.6.21-rc2~42^2~9^2~56 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=316547fdfae1be3847add6a18a711703e6d5ebc1;p=linux-2.6-omap-h63xx.git USB: devio.c add missing INIT_LIST_HEAD() It should hopefully fix the list corruption bug on: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=214402 Add a missing INIT_LIST_HEAD() Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 74be846fc02..2087766f9e8 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c @@ -570,6 +570,7 @@ static int usbdev_open(struct inode *inode, struct file *file) ps->dev = dev; ps->file = file; spin_lock_init(&ps->lock); + INIT_LIST_HEAD(&ps->list); INIT_LIST_HEAD(&ps->async_pending); INIT_LIST_HEAD(&ps->async_completed); init_waitqueue_head(&ps->wait);