ptp: Fix some locking bugs in ptp_read()
In ptp_read there is an unlock missing on an error path, and a double unlock on another error path. Signed-off-by: NDan Carpenter <error27@gmail.com> Acked-by: NRichard Cochran <richard.cochran@omicron.at> Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
Showing
想要评论请 注册 或 登录