Re: [PATCH] thermal: rcar_thermal: avoid NULL dereference in absense of IRQ resources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 24, 2018 at 1:15 PM Simon Horman <horms+renesas@xxxxxxxxxxxx> wrote:
> Ensure that the base address used by a call to rcar_thermal_common_write()
> may be NULL if the SOC supports interrupts for use with the thermal device
> but none are defined in DT as is the case for R-Car H1 (r8a7779). Guard
> against this condition to prevent a NULL dereference when the device is
> probed.
>
> Tested on:
> * R-Mobile APE6 (r8a73a4) / APE6EVM
> * R-Car H1 (r8a7779) / Marzen
> * R-Car H2 (r8a7790) / Lager
> * R-Car M2-W (r8a7791) / Koelsch
> * R-Car M2-N (r8a7793) / Gose
> * R-Car D3 ES1.0 (r8a77995) / Draak
>
> Fixes: 1969d9dc2079 ("thermal: rcar_thermal: add r8a77995 support")
> Signed-off-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>

Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux