mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-09-18 04:34:25 +00:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f238085415
commit
6a7255e1df
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user