Negative array index write using variable pos as an index to array enic->fdir.nodes. Fixed by add array index check. Coverity issue: 13270 Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: John Daley <johndale@cisco.com>