[PATCH v4.14.y] tun: fix use after free for ptr_ring