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