Re: [PATCH] USB: core: only clean up what we allocated

2017-12-12 Thread Andrey Konovalov
On Tue, Dec 12, 2017 at 5:12 PM, Alan Stern wrote: > On Tue, 12 Dec 2017, Andrey Konovalov wrote: > >> On Tue, Dec 12, 2017 at 4:41 PM, Alan Stern >> wrote: >> > On Mon, 11 Dec 2017, Greg KH wrote: >> > >> >> From: Andrey Konovalov >> >> >> >> When cleaning up the configurations, make sure we o

Re: [PATCH] USB: core: only clean up what we allocated

2017-12-12 Thread Alan Stern
On Tue, 12 Dec 2017, Andrey Konovalov wrote: > On Tue, Dec 12, 2017 at 4:41 PM, Alan Stern wrote: > > On Mon, 11 Dec 2017, Greg KH wrote: > > > >> From: Andrey Konovalov > >> > >> When cleaning up the configurations, make sure we only free the number > >> of configurations and interfaces that we

Re: [PATCH] USB: core: only clean up what we allocated

2017-12-12 Thread Andrey Konovalov
On Tue, Dec 12, 2017 at 4:41 PM, Alan Stern wrote: > On Mon, 11 Dec 2017, Greg KH wrote: > >> From: Andrey Konovalov >> >> When cleaning up the configurations, make sure we only free the number >> of configurations and interfaces that we could have allocated. >> >> Reported-by: Andrey Konovalov

Re: [PATCH] USB: core: only clean up what we allocated

2017-12-12 Thread Alan Stern
On Mon, 11 Dec 2017, Greg KH wrote: > From: Andrey Konovalov > > When cleaning up the configurations, make sure we only free the number > of configurations and interfaces that we could have allocated. > > Reported-by: Andrey Konovalov > Cc: stable > Signed-off-by: Greg Kroah-Hartman > > dif

[PATCH] USB: core: only clean up what we allocated

2017-12-11 Thread Greg KH
From: Andrey Konovalov When cleaning up the configurations, make sure we only free the number of configurations and interfaces that we could have allocated. Reported-by: Andrey Konovalov Cc: stable Signed-off-by: Greg Kroah-Hartman diff --git a/drivers/usb/core/config.c b/drivers/usb/core/co