Re: [BACKPORT 4.4.y 25/25] USB: core: only clean up what we allocated

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

 



On Fri, Mar 22, 2019 at 04:44:16PM +0100, Arnd Bergmann wrote:
> From: Andrey Konovalov <andreyknvl@xxxxxxxxxx>
> 
> 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 <andreyknvl@xxxxxxxxxx>
> Cc: stable <stable@xxxxxxxxxxxxxxx>
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> (cherry picked from commit 32fd87b3bbf5f7a045546401dfe2894dbbf4d8c3)
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
> ---
>  drivers/usb/core/config.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)

Also added to 4.14.y and 4.9.y



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

  Powered by Linux