aboutsummaryrefslogtreecommitdiff
path: root/include/linux/pinctrl
diff options
context:
space:
mode:
authorAlexey Klimov <klimov.linux@gmail.com>2016-08-08 02:34:46 +0100
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:58:03 +0200
commit6ff109279b64501ca52c1fb86a6841bfcf4e2501 (patch)
tree1d90621d405159fc3b5903c1ac03b56569b99a7e /include/linux/pinctrl
parent867f44aeb3792a0c88a42ff9944ef99a03303008 (diff)
USB: serial: fix memleak in driver-registration error path
commit 647024a7df36014bbc4479d92d88e6b77c0afcf6 upstream. udriver struct allocated by kzalloc() will not be freed if usb_register() and next calls fail. This patch fixes this by adding one more step with kfree(udriver) in error path. Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include/linux/pinctrl')
0 files changed, 0 insertions, 0 deletions