diff options
author | Heinrich Schuchardt | 2020-11-19 12:24:44 +0100 |
---|---|---|
committer | Heinrich Schuchardt | 2020-11-29 05:18:16 +0100 |
commit | 661d2238688c25f676aa18a7f866ff1cd285ff3d (patch) | |
tree | 8b94207b8dacbc7370398492f30e2d9133ef420d /configs/xfi3_defconfig | |
parent | 7889951d0f56eab746a7c8fde350a022ba0361ca (diff) |
fs: fat: avoid NULL dereference when root dir is full
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: allocate a new cluster for root directory of fat32")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'configs/xfi3_defconfig')
0 files changed, 0 insertions, 0 deletions