Re: [PATCH][next] net: hns3: fix dereference of ae_dev before it is null checked
From: David Miller
Date: Mon Jun 17 2019 - 17:10:59 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Mon, 17 Jun 2019 12:42:14 +0100
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Pointer ae_dev is null checked however, prior to that it is dereferenced
> when assigned pointer ops. Fix this by assigning pointer ops after ae_dev
> has been null checked.
>
> Addresses-Coverity: ("Dereference before null check")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Applied.