Skip to content
Commit d99e1597 authored by Savva Mitrofanov's avatar Savva Mitrofanov Committed by Pedro Falcato
Browse files

Ext4Pkg: Fix division by zero by adding check for s_inodes_per_group



Superblock s_inodes_per_group field can't be zero, it leads to division
by zero in BlockGroup routine Ext4ReadInode

Cc: Marvin Häuser <mhaeuser@posteo.de>
Cc: Pedro Falcato <pedro.falcato@gmail.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>
Fixes: d9ceedca ("Ext4Pkg: Add Ext4Dxe driver.")
Signed-off-by: default avatarSavva Mitrofanov <savvamtr@gmail.com>
Reviewed-by: default avatarPedro Falcato <pedro.falcato@gmail.com>
Reviewed-by: default avatarMarvin Häuser <mhaeuser@posteo.de>
parent 0bea20a5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment