[PATCH 5.4 16/25] gtp: fix use-after-free and null-ptr-deref in gtp_newlink()