Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: Fix oops in PhidgetServo

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>

authored by

Sean Young and committed by
Greg Kroah-Hartman
6a7255e1 f2380854

+1
+1
drivers/usb/misc/phidgetservo.c
··· 282 282 dev->dev = NULL; 283 283 goto out; 284 284 } 285 + dev_set_drvdata(dev->dev, dev); 285 286 286 287 servo_count = dev->type & SERVO_COUNT_QUAD ? 4 : 1; 287 288