]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jun 2022 12:11:23 +0000 (14:11 +0200)
commit54036bcc82af4fdc1e64c0878f86841778d31829
tree3e9c6aecdd4ace9d0b9e68c65324c28fd08d13fb
parent545a1d25fefa9676b3e3b496b2f65e8157155f61
ext4: make variable "count" signed

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