summaryrefslogtreecommitdiffstats
path: root/arch/mips/ath79
diff options
context:
space:
mode:
authorRobin Dong2011-07-18 05:43:42 +0200
committerTheodore Ts'o2011-07-18 05:43:42 +0200
commitd46203159ed376fdbe2b05aa57e58207bf27a8f9 (patch)
tree8bcbe5545066606b12d6cd250747471802520c0b /arch/mips/ath79
parentext4: avoid wasted extent cache lookup if !PUNCH_OUT_EXT (diff)
downloadkernel-qcow2-linux-d46203159ed376fdbe2b05aa57e58207bf27a8f9.tar.gz
kernel-qcow2-linux-d46203159ed376fdbe2b05aa57e58207bf27a8f9.tar.xz
kernel-qcow2-linux-d46203159ed376fdbe2b05aa57e58207bf27a8f9.zip
ext4: avoid eh_entries overflow before insert extent_idx
If eh_entries is equal to (or greater than) eh_max, the operation of inserting new extent_idx will make number of entries overflow. So check eh_entries before inserting the new extent_idx. Although there is no bug case according the code (function ext4_ext_insert_index is called by ext4_ext_split and ext4_ext_split is called only if the index block has free space), the right logic should be "lookup the capacity before insertion". Signed-off-by: Robin Dong <sanbai@taobao.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'arch/mips/ath79')
0 files changed, 0 insertions, 0 deletions