net/mvpp2: check pointer before using it
authorTomasz Duszynski <tdu@semihalf.com>
Mon, 4 Jun 2018 09:24:28 +0000 (11:24 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Jun 2018 17:27:50 +0000 (19:27 +0200)
commit42ab8427d4c67532df0b91b8e55e695f8c4f3bb6
treec3ac28c546c6cfced21bb1070b6fec2a1f2962e7
parentacab7d58c81bbf100ff288e44e309891d54e0c20
net/mvpp2: check pointer before using it

Avoid NULL dereference by checking pointer before using it.

Note that the fixes tag is before the driver was renamed
to mvpp2, so the patch will not apply that far back.

Fixes: 3588aaa68eab ("net/mrvl: fix HIF objects allocation")

Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
drivers/net/mvpp2/mrvl_ethdev.c