Skip to contentSkip to conversation

Fix invalid reference to index variable of the iterator

PATCH New Reppenhagen 1 participant 1 message Oct 14, 2020 Mailbox API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix invalid reference to index variable of the iterator

From: Marco Reppenhagen <[email protected]>

Fixing the invalid reference to index variable ot the iterator.

---
 drivers/mailbox/mailbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mailbox/mailbox.c +1 -1
index 0b821a5b2db8..9d9e135f062c 100644
@@ -364,7 +364,7 @@ struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index)
 		return chan;
 	}
 
-	if (chan->cl || !try_module_get(mbox->dev->driver->owner)) {
+	if (chan->cl || !try_module_get(chan->mbox->dev->driver->owner)) {
 		dev_dbg(dev, "%s: mailbox not free\n", __func__);
 		mutex_unlock(&con_mutex);
 		return ERR_PTR(-EBUSY);
Signature · 1 line
2.17.1