|
@@ -1204,6 +1204,9 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
*slots = mei_count_empty_write_slots(dev);
|
|
*slots = mei_count_empty_write_slots(dev);
|
|
|
|
+ if (*slots <= 0)
|
|
|
|
+ return -EMSGSIZE;
|
|
|
|
+
|
|
/* complete all waiting for write CB */
|
|
/* complete all waiting for write CB */
|
|
dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n");
|
|
dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n");
|
|
|
|
|