diff options
author | Tom Rini <trini@konsulko.com> | 2023-03-27 15:19:57 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-27 15:19:57 -0400 |
commit | 605bc145f91d2a28ba2e517cae4e53e255e34b6f (patch) | |
tree | a8df36d6569d441bc013399ff7dafff07cd36657 /fs/ext4/ext4_common.c | |
parent | fde439219ff53a46bdd5dff69e049ccd4be57310 (diff) | |
parent | 41a88ad529b3943b1e465846eb24fe2c29203e35 (diff) |
Merge branch 'master' into next
Diffstat (limited to 'fs/ext4/ext4_common.c')
-rw-r--r-- | fs/ext4/ext4_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ext4/ext4_common.c b/fs/ext4/ext4_common.c index f50de7c089e..9a9c520e22c 100644 --- a/fs/ext4/ext4_common.c +++ b/fs/ext4/ext4_common.c @@ -2373,6 +2373,10 @@ int ext4fs_mount(unsigned part_length) struct ext2_data *data; int status; struct ext_filesystem *fs = get_fs(); + + if (part_length < SUPERBLOCK_SIZE) + return 0; + data = zalloc(SUPERBLOCK_SIZE); if (!data) return 0; |