pxe: don't corrupt the length of an RRQ packet on retry
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 25 Jun 2010 20:13:11 +0000 (13:13 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 25 Jun 2010 20:13:11 +0000 (13:13 -0700)
commitd61a4a879b6a6a875b06e3cb461470b82b0ecb41
treebe1df569cf4d1648e10335e4614c9e9adccf81b8
parentbfc223004955a1bfdf1651d4a21e0546d2cd47fc
pxe: don't corrupt the length of an RRQ packet on retry

Due to double use of the variable "buf", we would end up corrupting
the length, but not the contents, of an RRQ packet if we ended up
having to re-send.  Some TFTP servers ignored the extra garbage
(including tftp-hpa), others would refuse to accept the RRQ, causing
failures.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/fs/pxe/pxe.c