ext4: gracefully fail on divide-by-0
authorPaul Emge <paulemge@forallsecure.com>
Mon, 8 Jul 2019 23:37:06 +0000 (16:37 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 18 Jul 2019 15:31:29 +0000 (11:31 -0400)
commit084be43b751df7133c94c6bf556bc61bd6297406
tree2442cc233bbd36176591013b8143b75b2cf82915
parent878269dbe74229005dd7f27aca66c554e31dad8e
ext4: gracefully fail on divide-by-0

This patch checks for 0 in several ext4 headers and gracefully
fails instead of raising a divide-by-0 exception.

Signed-off-by: Paul Emge <paulemge@forallsecure.com>
fs/ext4/ext4_common.c