]> git.baikalelectronics.ru Git - kernel.git/commit
dm raid: fix KASAN warning in raid5_remove_disk
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 29 Jun 2022 17:40:01 +0000 (13:40 -0400)
committerMike Snitzer <snitzer@kernel.org>
Wed, 29 Jun 2022 23:47:36 +0000 (19:47 -0400)
commitd7c9e8f63e1452a4c2452d969cf823375518fa92
treea7c072147ad36cc5211e7fb4cb31ac1d30f83a5b
parent822df71a0f78d7fff8e5586e1edf33d79e1d945e
dm raid: fix KASAN warning in raid5_remove_disk

There's a KASAN warning in raid5_remove_disk when running the LVM
testsuite. We fix this warning by verifying that the "number" variable is
within limits.

Cc: stable@vger.kernel.org
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/raid5.c