[PATCH] ibmvnic: fix: NULL pointer dereference.

Lijun Pan lijunp213 at gmail.com
Thu Dec 31 09:00:47 AEDT 2020


On Wed, Dec 30, 2020 at 1:25 AM YANG LI <abaci-bugfix at linux.alibaba.com> wrote:
>
> The error is due to dereference a null pointer in function
> reset_one_sub_crq_queue():
>
> if (!scrq) {
>     netdev_dbg(adapter->netdev,
>                "Invalid scrq reset. irq (%d) or msgs(%p).\n",
>                 scrq->irq, scrq->msgs);
>                 return -EINVAL;
> }
>
> If the expression is true, scrq must be a null pointer and cannot
> dereference.
>
> Signed-off-by: YANG LI <abaci-bugfix at linux.alibaba.com>
> Reported-by: Abaci <abaci at linux.alibaba.com>
> ---

Acked-by: Lijun Pan <ljp at linux.ibm.com>


More information about the Linuxppc-dev mailing list