Staging: usbip: fix multiple interfaces
commitaa5873e96271611ae55586f65e49ea1fab90cb88
authorEndre Kollar <taxy443@gmail.com>
Tue, 27 Jul 2010 10:39:30 +0000 (27 12:39 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Jul 2010 18:06:29 +0000 (27 11:06 -0700)
treeb2a0c0b5d06976b262e4403225d6ca3bc8380daf
parent125ed824d3d03f5c470cf98aca757fd9423c49ab
Staging: usbip: fix multiple interfaces

The stub_probe function instantiates an stub_dev object  for all
interfaces. Wich causes a problem.  The stub_dev object belongs to their
own interfaces. This patch creates the sdev object at the first
stub_probe call, the other calls associate the interfaces to this.

Signed-off-by: Endre Kollar <taxy443@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub.h
drivers/staging/usbip/stub_dev.c
drivers/staging/usbip/stub_main.c