fix module init error.

Should not set -ENOMEM at first because it is
soon replaced.
Should not return ERR_PTR.
Can return -ENOMEM for kobj_create_and_add.