From: Adam Kupczyk Date: Mon, 5 Aug 2024 13:45:51 +0000 (+0000) Subject: blk/kernel: Fix uninitialized discard_stop X-Git-Tag: v19.2.1~102^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=46d33cc096f92bae7050feb1496a4bf1e05aac12;p=ceph.git blk/kernel: Fix uninitialized discard_stop Value discard_stop could be uninitialized. Signed-off-by: Adam Kupczyk (cherry picked from commit bdcc7dab9957b010bcac9e0775f593663a8639e3) --- diff --git a/src/blk/kernel/KernelDevice.cc b/src/blk/kernel/KernelDevice.cc index f2f406197b775..ad7bfc4cf9467 100644 --- a/src/blk/kernel/KernelDevice.cc +++ b/src/blk/kernel/KernelDevice.cc @@ -65,6 +65,7 @@ KernelDevice::KernelDevice(CephContext* cct, aio_callback_t cb, void *cbpriv, ai discard_callback(d_cb), discard_callback_priv(d_cbpriv), aio_stop(false), + discard_stop(false), aio_thread(this), injecting_crash(0) {