[PATCH kernel-4.19] livepatch: Fix crash when access the global variable in hook