fixing coverity errors - 5

Change-Id: Ib7ae9835fea96969d9f75c9fb160a18bc8cc745f
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>