call disable_kernel_write() in case of a failure