]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
USB: core: only clean up what we allocated
authorAndrey Konovalov <andreyknvl@google.com>
Mon, 11 Dec 2017 21:48:41 +0000 (22:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Dec 2017 12:04:55 +0000 (13:04 +0100)
commit32fd87b3bbf5f7a045546401dfe2894dbbf4d8c3
treec3c6fbbdf6ec4c129f5d6262c9d89fc31e9dd697
parentc1ed47355467d03639b750570b4324f7c1eed68c
USB: core: only clean up what we allocated

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@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/config.c