Skip to content
Commit 02197fa7 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Simon Glass
Browse files

dm: dump.c: Fix segfault when entry->of_match is NULL



Currently, dm drivers command produces a segfault:
=> dm drivers
Driver                Compatible
--------------------------------
Segmentation fault (core dumped)

This is caused by a NULL pointer dereference of entry->of_match.
Add a check to prevent this.

Signed-off-by: default avatarOvidiu Panait <ovpanait@gmail.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
parent dfd5321b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment