Initialize all fields of struct iocb.

Kernel does not accept non-zero value of iocb->aio_reserved2.

Bug: 132803232
Test: initialize malloc() memory to non-zero pattern and see what breaks

Change-Id: I65a7e89e3a2c1ba79df1dc2d011d6c76c41afb81
This commit is contained in:
Evgenii Stepanov 2019-05-15 18:45:01 -07:00
parent 9c7a39ed2d
commit fe7eca7b8f

View file

@ -119,7 +119,7 @@ struct TransferId {
struct IoBlock {
bool pending = false;
struct iocb control;
struct iocb control = {};
std::shared_ptr<Block> payload;
TransferId id() const { return TransferId::from_value(control.aio_data); }