linux_dsm_epyc7002/drivers/nvme/target
Sagi Grimberg fb8658581a 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: 872d26a391 ("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>
2019-01-16 09:44:20 -07:00
..
admin-cmd.c nvmet: update smart log with num err log entries 2018-12-13 09:59:07 +01:00
configfs.c nvmet: allow configfs tcp trtype configuration 2018-12-13 09:58:58 +01:00
core.c nvmet: use a macro for default error location 2018-12-18 17:50:44 +01:00
discovery.c nvmet: add error log support for fabrics-cmd 2018-12-13 09:59:04 +01:00
fabrics-cmd.c nvmet: add error log support for fabrics-cmd 2018-12-13 09:59:04 +01:00
fc.c nvmet-fc: remove the IN_ISR deferred scheduling options 2018-12-07 22:26:57 -07:00
fcloop.c nvmet-fcloop: suppress a compiler warning 2018-10-17 08:58:31 +02:00
io-cmd-bdev.c nvmet: add error log support for bdev backend 2018-12-13 09:59:05 +01:00
io-cmd-file.c nvmet: add error log support for file backend 2018-12-13 09:59:06 +01:00
Kconfig nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00
loop.c nvme-fabrics: allow nvmf_connect_io_queue to poll 2018-12-18 17:50:48 +01:00
Makefile nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00
nvmet.h nvmet: use a macro for default error location 2018-12-18 17:50:44 +01:00
rdma.c nvmet: add error log support for rdma backend 2018-12-13 09:59:04 +01:00
tcp.c nvmet-tcp: fix uninitialized variable access 2019-01-16 09:44:20 -07:00