Re: [PATCH] m68k: let clk_enable() return immediately if clk is NULL

2021-01-25 Thread Greg Ungerer
Hi Defang, On 28/12/20 12:07 pm, Defang Bo wrote: Similar to commit<742859adc721>("m68k: let clk_disable() return immediately if clk is NULL"). there should be a check for clk to prevent NULL pointer dereference. Signed-off-by: Defang Bo I have applied this to the m68knommu git tree,

Re: [PATCH] m68k: let clk_enable() return immediately if clk is NULL

2020-12-27 Thread Geert Uytterhoeven
Hi Defang, On Mon, Dec 28, 2020 at 3:08 AM Defang Bo wrote: > Similar to commit<742859adc721>("m68k: let clk_disable() return immediately > if clk is NULL"). > there should be a check for clk to prevent NULL pointer dereference. > > Signed-off-by: Defang Bo Thanks for your patch! > ---

[PATCH] m68k: let clk_enable() return immediately if clk is NULL

2020-12-27 Thread Defang Bo
Similar to commit<742859adc721>("m68k: let clk_disable() return immediately if clk is NULL"). there should be a check for clk to prevent NULL pointer dereference. Signed-off-by: Defang Bo --- arch/m68k/coldfire/clk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git