Skip to content

Commit

Permalink
USB: Fix oops in PhidgetServo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sean Young authored and Greg Kroah-Hartman committed Dec 20, 2006
1 parent f238085 commit 6a7255e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/misc/phidgetservo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6a7255e

Please sign in to comment.