From: Jingchang Lu Date: Tue, 21 Oct 2014 08:50:21 +0000 (+0800) Subject: serial: of-serial: fix uninitialized kmalloc variable X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~143^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e12e675c17982a8b3cc91314a68f4c4d1bceb92;p=pandora-kernel.git serial: of-serial: fix uninitialized kmalloc variable 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 Acked-by: Arnd Bergmann --- Reading git-diff-tree failed