Re: [PATCH] usb: typec: fix pm usage counter imbalance in ucsi_ccg_sync_control()

From: Dan Carpenter
Date: Mon Jan 06 2025 - 09:08:45 EST


On Mon, Dec 30, 2024 at 05:35:23PM +0800, GONG Ruiqi wrote:
> The error handling for the case `con_index == 0` should involve dropping
> the pm usage counter, as ucsi_ccg_sync_control() gets it at the
> beginning. Fix it.
>
> Fixes: e56aac6e5a25 ("usb: typec: fix potential array underflow in ucsi_ccg_sync_control()")
> Signed-off-by: GONG Ruiqi <gongruiqi1@xxxxxxxxxx>

Ugh. My bad. Sorry.

Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

regards,
dan carpenter