Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1643503
| From | Rob Herring <robh@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] of: fdt: add missing allocation-failure check |
| Date | 2017-05-17 18:40 +0200 |
| Message-ID | <tIa9s-5sd-17@gated-at.bofh.it> (permalink) |
| References | <tI93I-4Nh-21@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, May 17, 2017 at 05:29:09PM +0200, Johan Hovold wrote:
> 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 <stable@vger.kernel.org> # 2.6.38
> Signed-off-by: Johan Hovold <johan@kernel.org>
> ---
> drivers/of/fdt.c | 3 +++
> 1 file changed, 3 insertions(+)
Applied, thanks.
Rob
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] of: fdt: add missing allocation-failure check Johan Hovold <johan@kernel.org> - 2017-05-17 17:30 +0200 Re: [PATCH] of: fdt: add missing allocation-failure check Rob Herring <robh@kernel.org> - 2017-05-17 18:40 +0200
csiph-web