LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH][STABLE 2.6.19] Fix oops in PhidgetServo
@ 2006-12-06 20:27 Sean Young
  0 siblings, 0 replies; only message in thread
From: Sean Young @ 2006-12-06 20:27 UTC (permalink / raw)
  To: Greg KH, Chris Wright; +Cc: linux-kernel, linux-usb-devel

From: Sean Young <sean@mess.org>

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>
---
Please consider this for inclusion in the next -stable, this issue is 
affecting users.

--- linux-2.6.19/drivers/usb/misc/phidgetservo.c.orig	2006-11-29 21:57:37.000000000 +0000
+++ linux-2.6.19/drivers/usb/misc/phidgetservo.c	2006-12-04 21:01:40.000000000 +0000
@@ -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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-06 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-06 20:27 [PATCH][STABLE 2.6.19] Fix oops in PhidgetServo Sean Young

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).