aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/mei/interrupt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c
index 83e80bc08d77..8e4dd74b96e5 100644
--- a/drivers/misc/mei/interrupt.c
+++ b/drivers/misc/mei/interrupt.c
@@ -1204,6 +1204,9 @@ static int mei_irq_thread_write_handler(struct mei_io_list *cmpl_list,
1204 return 0; 1204 return 0;
1205 } 1205 }
1206 *slots = mei_count_empty_write_slots(dev); 1206 *slots = mei_count_empty_write_slots(dev);
1207 if (*slots <= 0)
1208 return -EMSGSIZE;
1209
1207 /* complete all waiting for write CB */ 1210 /* complete all waiting for write CB */
1208 dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n"); 1211 dev_dbg(&dev->pdev->dev, "complete all waiting for write cb.\n");
1209 1212