]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: make variable "count" signed
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Mon, 30 May 2022 10:00:47 +0000 (18:00 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Jun 2022 23:35:57 +0000 (19:35 -0400)
commitf6d4497e4fe91b9c7c92e607853eb0b2522660b2
tree46c0ca94cb895472874b379acd40d45e506f1c3a
parentbd32867943b6d3bc47847990f27e1eba70ca771b
ext4: make variable "count" signed

Since dx_make_map() may return -EFSCORRUPTED now, so change "count" to
be a signed integer so we can correctly check for an error code returned
by dx_make_map().

Fixes: 617f37af334e ("ext4: verify dir block before splitting it")
Cc: stable@kernel.org
Signed-off-by: Ding Xiang <dingxiang@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20220530100047.537598-1-dingxiang@cmss.chinamobile.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c