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

2014-10-21 Thread Arnd Bergmann
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

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

2014-10-21 Thread Jingchang Lu
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 --- drivers/tty/serial/of_serial.c | 2 +- 1 file c