diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-05-27 13:10:50 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-03 14:24:57 +0200 |
commit | 2649939ad750db48f94d3cdab26e3a0115672e6b (patch) | |
tree | 5a4b87456663b65e09f9af8e8d5da40f33141504 /fs/Kconfig | |
parent | f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a (diff) |
usb: typec: ucsi: ccg: fix memory leak in do_flash
In case memory resources for *fw* were successfully allocated,
release them before return.
Addresses-Coverity-ID: 1445499 ("Resource leak")
Fixes: 5c9ae5a87573 ("usb: typec: ucsi: ccg: add firmware flashing support")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/Kconfig')
0 files changed, 0 insertions, 0 deletions