[PATCH 5.1 24/46] packet: Fix error path in packet_init