]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: ucsi: ccg: fix missing unlock on error in ccg_cmd_write_flash_row()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 29 Apr 2019 12:26:30 +0000 (12:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Apr 2019 12:25:12 +0000 (14:25 +0200)
commit0e90a9c87bd6507ba186bd16318a8170d49c8b2c
tree82eafd1d111fa3dd80be9b4f6b1deecbfa081a07
parent000917ca5b010b8dcc1ef1579e52edcb6a5d913c
usb: typec: ucsi: ccg: fix missing unlock on error in ccg_cmd_write_flash_row()

Add the missing unlock before return from function ccg_cmd_write_flash_row()
in the error handling case.

Fixes: 390a563c02cb ("usb: typec: ucsi: ccg: add firmware flashing support")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi_ccg.c