]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ext4: make variable "count" signed
authorDing Xiang <dingxiang@cmss.chinamobile.com>
Mon, 30 May 2022 10:00:47 +0000 (18:00 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:45 +0000 (11:46 +0200)
commitd1d3f02c0ce66656ca7660a69e39431e5e5dafb6
tree827fbf4b8db4f88686fb4ac4ce76ef3cbe9e6958
parenta37c1359714da42517dd19d36fc3c4d17edba832
ext4: make variable "count" signed

commit bc75a6eb856cb1507fa907bf6c1eda91b3fef52f upstream.

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: 46c116b920eb ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/namei.c