dm vdo flush: initialize return to NULL in allocate_flush
authorMike Snitzer <snitzer@kernel.org>
Sun, 11 Feb 2024 19:07:18 +0000 (14:07 -0500)
committerMike Snitzer <snitzer@kernel.org>
Mon, 4 Mar 2024 20:07:55 +0000 (15:07 -0500)
commitb259c1a60c379ad73d673d329892c7dc36313656
tree6271010ccd982abc16fc80b07ca1aa61a57ef360
parent672fc9b8c000e8162cb4fe6f2dfc990df968ee3a
dm vdo flush: initialize return to NULL in allocate_flush

Otherwise, error path could result in allocate_flush's subsequent
check for flush being non-NULL leading to false positive.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Susan LeGendre-McGhee <slegendr@redhat.com>
Signed-off-by: Matthew Sakai <msakai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-vdo/flush.c