Fix use-after-free in endo-registration error path by moving the id-release to the device release function. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>