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)
commitc2d1812600f5a8c9341b2db7c863cd2725444de5
tree82eafd1d111fa3dd80be9b4f6b1deecbfa081a07
parent5f2c54e7153f2b30b7ee5c65ec5eb2b38a7b962d
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: 5c9ae5a87573 ("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