[PATCH] memory hotadd fixes: avoid registering res twice