]> git.baikalelectronics.ru Git - kernel.git/commit
of: Fix missing memory initialization on FDT unflattening
authorGrant Likely <grant.likely@linaro.org>
Wed, 28 Aug 2013 20:24:17 +0000 (21:24 +0100)
committerGrant Likely <grant.likely@linaro.org>
Thu, 29 Aug 2013 20:40:10 +0000 (21:40 +0100)
commitdf0d164c03a0ff7e96a2b9ce3c8262fee744e8dc
tree6a3b6614b9fd6c13947bdbda70b6fe3b5404a8fd
parentbc8703aff74032f5817e8ed6849cdc754604a8cf
of: Fix missing memory initialization on FDT unflattening

Any calls to dt_alloc() need to be zeroed. This is a temporary fix, but
the allocation function itself needs to zero memory before returning
it. This is a follow up to patch a5eb02ed2, "of: fdt: fix memory
initialization for expanded DT" which fixed one call site but missed
another.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Wladislav Wiebe <wladislav.kw@gmail.com>
Cc: stable@vger.kernel.org
drivers/of/base.c