USB: gadget: ethernet error path potential oops fix
authorDavid Brownell <david-b@pacbell.net>
Wed, 19 Dec 2007 19:27:51 +0000 (11:27 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:58 +0000 (14:34 -0800)
commite7b13ec9235b9fded90f826ceeb8c34548631351
tree59fc534eda674c64c4a23e98b0d13a233579e19a
parent340ba5f9cee6c7096162bfb2e0f7589f1ce0e142
USB: gadget: ethernet error path potential oops fix

Fix potential (never-observed) oops on rare error path,
bugzilla #9594.  Fix uses the same test as used earlier.

Also make the adjacent "else" block look like an "else" block
instead of hiding like a bug.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ether.c