Re: [PATCH] add chan->cl check in mbox_chan_received_data()

2021-01-07 Thread haidong yao
PRD_MBOX_IRQ_STS); return IRQ_HANDLED; } On Tue, Dec 15, 2020 at 2:48 AM Haidong Yao wrote: > --- a/drivers/mailbox/mailbox.c > +++ b/drivers/mailbox/mailbox.c > @@ -152,7 +152,7 @@ static enum hrtimer_restart txdone_hrtimer(struct hrtimer > *hrtimer) > vo

[PATCH] add chan->cl check in mbox_chan_received_data()

2020-12-15 Thread Haidong Yao
From: Haidong Yao mailbox outbox irq is coming, but mbox_request_channel is not be registered, so cl->rx_callback is NULL. panic log: [9.852090]c0 Unable to handle kernel NULL pointer dereference at virtual address 0020 [9.954634]c0 pstate: 60400089 (nZCv daIf +PAN -