Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a7255e1 authored by Sean Young's avatar Sean Young Committed by Greg Kroah-Hartman
Browse files

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: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f2380854
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;