[PATCH kernel-4.19 283/286] node: fix device cleanups in error handling code