net/qede: add check for null return
authorShahed Shaikh <shahed.shaikh@cavium.com>
Sat, 27 Jan 2018 21:15:34 +0000 (13:15 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:58:35 +0000 (10:58 +0100)
commit5c4e4fff189fff0ca861151135a9315da6f975b7
tree736a53dc099198c3b8538ca9c95f34e0c5184d7c
parent91709676eee8003acacf3a228c9cf38ca1e461a2
net/qede: add check for null return

Test the return value of ecore_ptt_acquire for NULL.

Coverity issue: 257049
Fixes: d378cefab84e ("net/qede: add support for GENEVE tunneling offload")

Signed-off-by: Shahed Shaikh <shahed.shaikh@cavium.com>
drivers/net/qede/qede_ethdev.c