event/opdl: fix dereference before null check
authorLiang Ma <liang.j.ma@intel.com>
Wed, 24 Jan 2018 15:05:51 +0000 (15:05 +0000)
committerJerin Jacob <jerin.jacob@caviumnetworks.com>
Wed, 31 Jan 2018 09:42:18 +0000 (10:42 +0100)
commit8545289a2912bdfab2c4ddf6cc5e134f72677b13
tree5fbac8fd841538796f0a869708809997554fc242
parenta2526b26306117f790ed1b55ad6beb7b5d7d0fe6
event/opdl: fix dereference before null check

Coverity issue: 257022
Fixes: 4236ce9bf5bf ("event/opdl: add OPDL ring infrastructure library")

Signed-off-by: Liang Ma <liang.j.ma@intel.com>
drivers/event/opdl/opdl_ring.c