pxe, tftp: Handle block number wraparound
commit81d9a7d9eded5ac6f221020a1838d70107cb53e6
authorH. Peter Anvin <hpa@zytor.com>
Thu, 26 Apr 2012 22:49:52 +0000 (26 15:49 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 26 Apr 2012 22:49:52 +0000 (26 15:49 -0700)
tree1c01b581ab86528482f9f4ddbbc2d383efb57800
parenteba2e602f0a8627a3420f73eed96be6aafd422e6
pxe, tftp: Handle block number wraparound

Variables which hold TFTP block numbers must be uint16_t, or they will
not wrap around properly.

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