Skip to contentSkip to conversation

Fix oops in PhidgetServo

PATCH New Sean Young 1 participant 1 message Dec 6, 2006

lore
Share & tools
lore

Sean Young

author
#0 lore raw

PATCH 1/1 Fix oops in PhidgetServo

From: Sean Young <[email protected]>

The PhidgetServo causes an Oops when any of its sysfs attributes are read or written too, making the driver useless.

---
Please consider this for inclusion in the next -stable, this issue is affecting users.

drivers/usb/misc/phidgetservo.c renamed from drivers/usb/misc/phidgetservo.c.orig +1 -0
@@ -282,6 +282,7 @@ servo_probe(struct usb_interface *interf
 		dev->dev = NULL;
 		goto out;
 	}
+	dev_set_drvdata(dev->dev, dev);
 
 	servo_count = dev->type & SERVO_COUNT_QUAD ? 4 : 1;