Re: [PATCH v2] ipmi: Fix NULL pointer dereference in ssif_probe

From: Gustavo A. R. Silva
Date: Fri Aug 31 2018 - 16:50:07 EST




On 8/31/18 2:15 PM, Corey Minyard wrote:
> On 08/31/2018 10:00 AM, Gustavo A. R. Silva wrote:
>> There is a potential execution path in which function ssif_info_find()
>> returns NULL, hence there is a NULL pointer dereference when accessing
>> pointer *addr_info*
>>
>> Fix this by null checking *addr_info* before dereferencing it.
>
> Thanks for catching this quickly, before it went out. It's merged into my next tree.
>

Glad to help. :)

Thanks
--
Gustavo