complete fix rm issue 399577

complete commit 83200b55d3d67ee83f97e8a8b7d86e0c2bdb8a96
named    fix cleanup in kernel code
RM issue: 399577

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>