Re: [PATCH 1/1] fs: fat: avoid NULL dereference when root dir is full

2020-11-21 Thread Simon Glass
On Thu, 19 Nov 2020 at 05:42, Heinrich Schuchardt wrote: > > When trying to create a file in the full root directory of a FAT32 > filesystem a NULL dereference can be observed. > > When the root directory of a FAT16 filesystem is full fill_dir_slot() must > return -1 to signal that a new directory

[PATCH 1/1] fs: fat: avoid NULL dereference when root dir is full

2020-11-19 Thread Heinrich Schuchardt
When trying to create a file in the full root directory of a FAT32 filesystem a NULL dereference can be observed. When the root directory of a FAT16 filesystem is full fill_dir_slot() must return -1 to signal that a new directory entry could not be allocated. Fixes: cd2d727fff7e ("fs: fat: alloca