projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cba72f
)
USB: devio.c add missing INIT_LIST_HEAD()
author
Dan Carpenter
<error27@gmail.com>
Wed, 13 Dec 2006 08:03:38 +0000
(
00:03
-0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 7 Feb 2007 23:44:33 +0000
(15:44 -0800)
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 <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/devio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/core/devio.c
b/drivers/usb/core/devio.c
index 74be846fc0294443dbaa9d0b1a5d994562bc4d0e..2087766f9e88e059aa240c89e77f7e7d93939602 100644
(file)
--- 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);