net/mrvl: check if ppio is initialized
authorTomasz Duszynski <tdu@semihalf.com>
Tue, 5 Dec 2017 09:39:19 +0000 (10:39 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 16 Jan 2018 17:47:49 +0000 (18:47 +0100)
commitc0511a8f741fdc475cf29f714b19c04589207e67
tree1fc47c873d63bd36be88df8cc5a1e3ca0c801029
parent004afcde781450158ea77ffb5a7d2e87ac802886
net/mrvl: check if ppio is initialized

Uninitialized ppio cannot be passed to MUSDK library routines as
application will crash.

Fix this by first checking whether ppio has been initialized.

Signed-off-by: Tomasz Duszynski <tdu@semihalf.com>
Acked-by: Jianbo Liu <jianbo.liu@arm.com>
drivers/net/mrvl/mrvl_ethdev.c