Re: [PATCH] serial: of-serial: fix uninitialized kmalloc variable
From: Arnd Bergmann
Date: Tue Oct 21 2014 - 06:11:19 EST
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@xxxxxxxxxxxxx>
>
Acked-by: Arnd Bergmann <arnd@xxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/