]> Git Repo - linux.git/commit
of: fdt: add missing allocation-failure check
authorJohan Hovold <[email protected]>
Wed, 17 May 2017 15:29:09 +0000 (17:29 +0200)
committerRob Herring <[email protected]>
Wed, 17 May 2017 16:36:52 +0000 (11:36 -0500)
commit49e67dd17649b60b4d54966e18ec9c80198227f0
tree91ae0cb4b14b989597251e71eed5e34c4f4e7a70
parent828d4cdd012c8ffbf76625c3ff164312e8666784
of: fdt: add missing allocation-failure check

The memory allocator passed to __unflatten_device_tree() (e.g. a wrapped
kzalloc) can fail so add the missing sanity check to avoid dereferencing
a NULL pointer.

Fixes: fe14042358fa ("of/flattree: Refactor unflatten_device_tree and add fdt_unflatten_tree")
Cc: stable <[email protected]> # 2.6.38
Signed-off-by: Johan Hovold <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
drivers/of/fdt.c
This page took 0.05452 seconds and 4 git commands to generate.