Fix coverity errors 3

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