[PATCH 5.15 49/84] gtp: fix use-after-free and null-ptr-deref in gtp_newlink()