net/nfp: fix possible buffer overflow