[PATCH 5.10 139/151] gtp: fix a potential NULL pointer dereference