[PATCH] serial: of-serial: fix uninitialized kmalloc variable

Arnd Bergmann arnd at arndb.de
Tue Oct 21 03:11:08 PDT 2014


On Tuesday 21 October 2014 16:50:21 Jingchang Lu wrote:
> The info pointer points to an uninitialized kmalloced space.
> If a device doesn't have clk property, then info->clk may
> have unpredicated value and cause call trace. So use kzalloc
> to make sure it is NULL initialized.
> 
> Signed-off-by: Jingchang Lu <jingchang.lu at freescale.com>
> 

Acked-by: Arnd Bergmann <arnd at arndb.de



More information about the linux-arm-kernel mailing list