fs: tftp: improve file size handling
Previously we used FILE_SIZE_STREAM unconditionally. Instead, fill the
inode size with a valid filesize if we have one and only if not fall
back to FILE_SIZE_STREAM.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3f245bc commit e3e55fa3aa698bb92fa4362a36e102749c13c124
@Sascha Hauer Sascha Hauer authored on 30 Aug 2018
Showing 1 changed file
View
fs/tftp.c