Commit 9caae4d8 authored by Fernando Guzman Lugo's avatar Fernando Guzman Lugo Committed by Hiroshi DOYU
Browse files

Mailbox: Check valid registered callback before calling



This patch checks if the mailbox user has assinged a valid
callback fuction before calling it.

Signed-off-by: default avatarFernando Guzman Lugo <x0095840@ti.com>
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
parent 0e828e8c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ static void mbox_rx_work(struct work_struct *work)

		msg = (mbox_msg_t)rq->special;
		blk_end_request_all(rq, 0);
		if (mbox->rxq->callback)
			mbox->rxq->callback((void *)msg);
	}
}