[PATCH 3.16 117/157] l2ip: fix possible use-after-free