Thread (2 messages) 2 messages, 2 authors, 2014-10-21

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

From: arnd@arndb.de (Arnd Bergmann)
Date: 2014-10-21 10:11:15
Also in: linux-serial, lkml

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 <redacted>
Acked-by: Arnd Bergmann <arnd@arndb.de
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help