RE: [PATCH V2] rtc: snvs: fix possible race condition

2019-07-19 Thread Anson Huang
Hi, Alexandre > On 19/07/2019 11:01:02+0800, anson.hu...@nxp.com wrote: > > From: Anson Huang > > > > The RTC IRQ is requested before the struct rtc_device is allocated, > > this may lead to a NULL pointer dereference in IRQ handler. > > > > To fix this issue, allocating the rtc_device struct

Re: [PATCH V2] rtc: snvs: fix possible race condition

2019-07-19 Thread Alexandre Belloni
On 19/07/2019 11:01:02+0800, anson.hu...@nxp.com wrote: > From: Anson Huang > > The RTC IRQ is requested before the struct rtc_device is allocated, > this may lead to a NULL pointer dereference in IRQ handler. > > To fix this issue, allocating the rtc_device struct and register rtc > device

[PATCH V2] rtc: snvs: fix possible race condition

2019-07-18 Thread Anson . Huang
From: Anson Huang The RTC IRQ is requested before the struct rtc_device is allocated, this may lead to a NULL pointer dereference in IRQ handler. To fix this issue, allocating the rtc_device struct and register rtc device before requesting the RTC IRQ. Using