Re: [PATCH 1/2] dm: dump.c: Fix segfault when entry->of_match is NULL

2020-04-05 Thread Simon Glass
Hi, On Sun, 5 Apr 2020 at 11:08, Ovidiu Panait wrote: > > On 05.04.2020 19:53, Sean Anderson wrote: > > > On 4/5/20 12:47 PM, Ovidiu Panait wrote: > >> Currently, dm drivers command produces a segfault: > >> => dm drivers > >> DriverCompatible > >>

Re: [PATCH 1/2] dm: dump.c: Fix segfault when entry->of_match is NULL

2020-04-05 Thread Ovidiu Panait
On 05.04.2020 19:53, Sean Anderson wrote: On 4/5/20 12:47 PM, Ovidiu Panait wrote: Currently, dm drivers command produces a segfault: => dm drivers DriverCompatible Segmentation fault (core dumped) This is caused by a NULL pointer dereference

Re: [PATCH 1/2] dm: dump.c: Fix segfault when entry->of_match is NULL

2020-04-05 Thread Sean Anderson
On 4/5/20 12:47 PM, Ovidiu Panait wrote: > Currently, dm drivers command produces a segfault: > => dm drivers > DriverCompatible > > Segmentation fault (core dumped) > > This is caused by a NULL pointer dereference of entry->of_match. > Add a check

[PATCH 1/2] dm: dump.c: Fix segfault when entry->of_match is NULL

2020-04-05 Thread Ovidiu Panait
Currently, dm drivers command produces a segfault: => dm drivers DriverCompatible 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: Ovidiu Panait Cc: Sean