Re: [PATCH net-next] BNX2: fix a Null Pointer for stats_blk

From: Weidong Wang
Date: Thu Sep 24 2015 - 02:53:48 EST


On 2015/9/24 13:34, David Miller wrote:
> From: Weidong Wang <wangweidong1@xxxxxxxxxx>
> Date: Thu, 24 Sep 2015 10:00:45 +0800
>
>> It does affect the intention. Although, the problem exists then makes the
>> system panic within some case.
>>
>> Do you have any idea about it?
>
> Allocate the statistics block at probe time so that this problem is
> impossible.
>

It is a good idea.

Yet, what is the intention of the dynamic to alloc/free stats_block?
what will be affected by allocating the statistics block.

Best Regards,
Weidong

>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/