diff --git a/drivers/hwtracing/coresight/coresight-tmc-usb.c b/drivers/hwtracing/coresight/coresight-tmc-usb.c index f0bf16d1d17b..c92e23257323 100644 --- a/drivers/hwtracing/coresight/coresight-tmc-usb.c +++ b/drivers/hwtracing/coresight/coresight-tmc-usb.c @@ -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);