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)
commit0640332e073be9207f0784df43595c0c39716e42
tree6a3b6614b9fd6c13947bdbda70b6fe3b5404a8fd
parenta1727da599ad030ccaf4073473fd235c8ee28219
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 9e4012752, "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