projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f238085
)
USB: Fix oops in PhidgetServo
author
Sean Young
<sean@mess.org>
Wed, 6 Dec 2006 20:27:32 +0000
(20:27 +0000)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Wed, 20 Dec 2006 18:13:22 +0000
(10:13 -0800)
The PhidgetServo causes an Oops when any of its sysfs attributes are read
or written too, making the driver useless.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/phidgetservo.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/misc/phidgetservo.c
b/drivers/usb/misc/phidgetservo.c
index 7163f05c5b27063eb18b7554372fe99280205c8b..0d9de2f739301b6170635f4461f5dded1d9292dc 100644
(file)
--- a/
drivers/usb/misc/phidgetservo.c
+++ b/
drivers/usb/misc/phidgetservo.c
@@
-282,6
+282,7
@@
servo_probe(struct usb_interface *interface, const struct usb_device_id *id)
dev->dev = NULL;
goto out;
}
+ dev_set_drvdata(dev->dev, dev);
servo_count = dev->type & SERVO_COUNT_QUAD ? 4 : 1;