WSL2-Linux-Kernel/drivers/nvme/target
Minwoo Im 6b7e631b92 nvmet: return a specified error it subsys_alloc fails
nvmet_subsys_alloc() returns its pointer or NULL if it fails.  We can
see three different steps in this function:
  1. memory allocation
  2. argument check
  3. memory allocation for string

But now the callers of this function do not seem to handle case 2 by
returning -ENOMEM only even if it fails with an invalid parameter.

This patch specifies error codes so that caller can pass it to its own
caller.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>.
Signed-off-by: Christoph Hellwig <hch@lst.de>
2019-04-25 16:41:26 +02:00
..
Kconfig nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00
Makefile nvmet-tcp: add NVMe over TCP target driver 2018-12-13 09:58:57 +01:00
admin-cmd.c nvmet: fix discover log page when offsets are used 2019-04-11 17:28:30 +02:00
configfs.c nvmet: return a specified error it subsys_alloc fails 2019-04-25 16:41:26 +02:00
core.c nvmet: return a specified error it subsys_alloc fails 2019-04-25 16:41:26 +02:00
discovery.c nvmet: return a specified error it subsys_alloc fails 2019-04-25 16:41:26 +02:00
fabrics-cmd.c nvmet: rename nvme_completion instances from rsp to cqe 2019-04-25 16:41:26 +02:00
fc.c nvmet: rename nvme_completion instances from rsp to cqe 2019-04-25 16:41:26 +02:00
fcloop.c nvmet-fcloop: convert to SPDX identifiers 2019-02-20 07:22:34 -07:00
io-cmd-bdev.c nvmet: avoid double errno conversions 2019-04-05 08:07:56 +02:00
io-cmd-file.c nvmet: fix building bvec from sg list 2019-03-28 18:15:02 +01:00
loop.c nvmet: rename nvme_completion instances from rsp to cqe 2019-04-25 16:41:26 +02:00
nvmet.h nvmet: rename nvme_completion instances from rsp to cqe 2019-04-25 16:41:26 +02:00
rdma.c nvmet: rename nvme_completion instances from rsp to cqe 2019-04-25 16:41:26 +02:00
tcp.c nvmet: rename nvme_completion instances from rsp to cqe 2019-04-25 16:41:26 +02:00