On 16/07/2019 15:18:58+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 before requesting
> the RTC
Hi, Alexandre
> On 19/07/2019 19:04:21+, Trent Piepho wrote:
> > On Fri, 2019-07-19 at 02:57 +, Anson Huang wrote:
> > >
> > > > I do worry that handling the irq before the rtc device is
> > > > registered could still result in a crash. From what I saw, the
> > > > irq path in snvs only
On 19/07/2019 19:04:21+, Trent Piepho wrote:
> On Fri, 2019-07-19 at 02:57 +, Anson Huang wrote:
> >
> > > I do worry that handling the irq before the rtc device is registered
> > > could still
> > > result in a crash. From what I saw, the irq path in snvs only uses
> > > driver state
On Fri, 2019-07-19 at 02:57 +, Anson Huang wrote:
>
> > I do worry that handling the irq before the rtc device is registered could
> > still
> > result in a crash. From what I saw, the irq path in snvs only uses driver
> > state
> > members that are fully initialized for the most part, and
Hi, Trent
> On Thu, 2019-07-18 at 03:08 +, Aisheng Dong wrote:
> > > From: Anson Huang
> > > Sent: Wednesday, July 17, 2019 9:58 PM> Hi, Aisheng
> > >
> > > > > From: anson.hu...@nxp.com
> > > > > Sent: Tuesday, July 16, 2019 3:19 PM
> > > > >
> > > > > The RTC IRQ is requested before the
On Thu, 2019-07-18 at 03:08 +, Aisheng Dong wrote:
> > From: Anson Huang
> > Sent: Wednesday, July 17, 2019 9:58 PM>
> > Hi, Aisheng
> >
> > > > From: anson.hu...@nxp.com
> > > > Sent: Tuesday, July 16, 2019 3:19 PM
> > > >
> > > > The RTC IRQ is requested before the struct rtc_device is
>
> From: Anson Huang
> Sent: Wednesday, July 17, 2019 9:58 PM>
> Hi, Aisheng
>
> > > From: anson.hu...@nxp.com
> > > Sent: Tuesday, July 16, 2019 3:19 PM
> > >
> > > The RTC IRQ is requested before the struct rtc_device is allocated,
> > > this may lead to a NULL pointer dereference in IRQ
Hi, Aisheng
> > From: anson.hu...@nxp.com
> > Sent: Tuesday, July 16, 2019 3:19 PM
> >
> > 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 before
> From: anson.hu...@nxp.com
> Sent: Tuesday, July 16, 2019 3:19 PM
>
> 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 before requesting the RTC
> IRQ
>
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 before requesting
the RTC IRQ using devm_rtc_allocate_device, and use rtc_register_device
to
10 matches
Mail list logo