Skip to content

Commit bdcc7da

Browse files
committed
blk/kernel: Fix uninitialized discard_stop
Value discard_stop could be uninitialized. Signed-off-by: Adam Kupczyk <[email protected]>
1 parent cc5533f commit bdcc7da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/blk/kernel/KernelDevice.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ KernelDevice::KernelDevice(CephContext* cct, aio_callback_t cb, void *cbpriv, ai
6565
discard_callback(d_cb),
6666
discard_callback_priv(d_cbpriv),
6767
aio_stop(false),
68+
discard_stop(false),
6869
aio_thread(this),
6970
injecting_crash(0)
7071
{

0 commit comments

Comments
 (0)