Merge "coresight-tmc: Ignore USB write errors during disconnection"

This commit is contained in:
qctecmdr 2022-11-02 21:55:04 -07:00 committed by Gerrit - the friendly Code Review server
commit 98d3d52740

View File

@ -318,7 +318,8 @@ static void usb_write_done(struct byte_cntr *drvdata,
struct qdss_request *d_req)
{
atomic_inc(&drvdata->usb_free_buf);
if (d_req->status)
if (d_req->status && d_req->status != -ECONNRESET
&& d_req->status != -ESHUTDOWN)
pr_err_ratelimited("USB write failed err:%d\n", d_req->status);
kfree(d_req->sg);
kfree(d_req);