Re: [PATCH][next] gve: fix -ENOMEM null check on a page allocation

From: David Miller
Date: Wed Jul 03 2019 - 16:53:31 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Wed, 3 Jul 2019 17:50:37 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently the check to see if a page is allocated is incorrect
> and is checking if the pointer page is null, not *page as
> intended. Fix this.
>
> Addresses-Coverity: ("Dereference before null check")
> Fixes: f5cedc84a30d ("gve: Add transmit and receive support")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied.