Fix coverity errors - 4

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