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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 failure occurs,
> so fixed the code to actually do so. We need to decrement first because the adding at the current
> index of i is the one that failed.
> 
> At the same time the code is harmonized for hcd platform adding.
> 
> Found with coverity : CID 751073
> 
> Signed-off-by: Philippe De Swert <philippe.deswert@xxxxxxxxxxxxxxx>

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux