Fix coverity errors - 2

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