USB: gadget: at91_udc minor fix (there is no number six)
authorDavid Brownell <david-b@pacbell.net>
Mon, 10 Dec 2007 06:53:09 +0000 (22:53 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:59 +0000 (14:34 -0800)
commit1440e0967de8c598dae96d741652d498b3eb8f27
treec00b72257474bbdf10d16f598d7c3e836eba65c6
parente58679805dab3fb75df88141d9d869904a93337f
USB: gadget: at91_udc minor fix (there is no number six)

Fix a small glitch noted by Yannick Cote.  There is no endpoint number
six, so if a (broken) host wrongly tried to change or read status of
that endpoint, the driver could access reserved register space.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Yannick Cote <yanick@yanos.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/at91_udc.c