Commits
Arvind Yadav committed 085aa2de568
mm: memory_hotplug: use put_device() if device_register fail if device_register() returned an error. Always use put_device() to give up the initialized reference and release allocated memory. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>