Re: [PATCH 2/3] mailbox: Avoid NULL dereference in mbox_chan_received_data

2018-03-01 Thread Jassi Brar
On Wed, Feb 28, 2018 at 7:57 AM, Samuel Holland wrote: > If a reception IRQ is pending when a mailbox channel is shut down (for > example, if the controller uses threaded interrupts), it is possible for > mbox_chan_received_data to be called while chan->cl is NULL. > We can add a check in mailbox.

Re: [PATCH 2/3] mailbox: Avoid NULL dereference in mbox_chan_received_data

2018-02-28 Thread Andre Przywara
Hi, On 28/02/18 02:27, Samuel Holland wrote: > If a reception IRQ is pending when a mailbox channel is shut down (for > example, if the controller uses threaded interrupts), it is possible for > mbox_chan_received_data to be called while chan->cl is NULL. > > This was found while developing a mai