diff options
author | 2019-01-09 14:56:32 -0800 | |
---|---|---|
committer | 2019-01-16 09:44:20 -0700 | |
commit | fb8658581a150a859b654b154cefe3118ff4f1e0 (patch) | |
tree | 54daa9c491a674d10278ecbd602be78872663e09 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | block: don't lose track of REQ_INTEGRITY flag (diff) | |
download | wireguard-linux-fb8658581a150a859b654b154cefe3118ff4f1e0.tar.xz wireguard-linux-fb8658581a150a859b654b154cefe3118ff4f1e0.zip |
nvmet-tcp: fix uninitialized variable access
If we end up in nvmet_tcp_try_recv_one with a bogus state
queue receive state we will access result which is uninitialized.
Initialize restult to 0 which will be considered as if no data
was received by the tcp socket.
Fixes: 872d26a391da ("nvmet-tcp: add NVMe over TCP target driver")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions