[PATCH 1/2 v3] usb:gadget:dummy_hcd : Avoid infinite loop

2013-09-01 Thread Philippe De Swert
When an error occurs adding a udc platform device there is a risk of an infinite loop. If more than one platform device was added i will remain = than 0. The intention seems to clean up all the different already added platform devices before the failure occurs, so fixed the code to actually do

Re: [PATCH 1/2 v3] usb:gadget:dummy_hcd : Avoid infinite loop

2013-09-01 Thread Alan Stern
On Sun, 1 Sep 2013, Philippe De Swert wrote: When an error occurs adding a udc platform device there is a risk of an infinite loop. If more than one platform device was added i will remain = than 0. The intention seems to clean up all the different already added platform devices before the