On Thu, 4 Feb 2021 at 00:40, Heinrich Schuchardt <xypron.g...@gmx.de> wrote: > > Directories or files called '.' or '..' cannot be created or written to > in any directory. Move the test to normalize_longname() to check this > early. > > Signed-off-by: Heinrich Schuchardt <xypron.g...@gmx.de> > --- > v2: > check for file length 0, simplify check for invalid file names > --- > fs/fat/fat_write.c | 13 +++---------- > 1 file changed, 3 insertions(+), 10 deletions(-)
Reviewed-by: Simon Glass <s...@chromium.org>