[PATCH 5.0 06/32] l2ip: fix possible use-after-free