[PATCH v2 0/3] MR392: regedit: Code clean-up and invalid read fix