net/packet: fix overflow in check for priv area size