numam-spdk/lib/nvme
Daniel Verkamp b96536e74a nvme: check request allocation when submitting AER
Previously, if nvme_allocate_request() failed in
nvme_ctrlr_construct_and_submit_aer(), there was no error checking, so a
NULL pointer would be dereferenced.

Add a return value to nvme_ctrlr_construct_and_submit_aer() so we can
signal failure to the caller.  This can only really be reasonably
handled during initialization; when resubmitting a completed AER later,
there is nowhere to report failure, so the AER will just remain
unsubmitted.

Change-Id: I413eb6c21be01cd9a61e67f62f2d0b7170eabaa3
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-01-06 13:51:15 -07:00
..
Makefile build: define a common Makefile clean command 2015-12-07 15:14:36 -07:00
nvme_ctrlr_cmd.c build: enable signed-vs-unsigned compare warning 2015-11-02 14:40:22 -07:00
nvme_ctrlr.c nvme: check request allocation when submitting AER 2016-01-06 13:51:15 -07:00
nvme_impl.h build: enable signed-vs-unsigned compare warning 2015-11-02 14:40:22 -07:00
nvme_internal.h nvme: reorder parent member of struct nvme_request 2015-12-24 12:21:55 -07:00
nvme_ns_cmd.c nvme: fix wrong type of the deallocate function parameter 2015-12-28 11:02:17 -07:00
nvme_ns.c nvme: add max completions limit to I/O polling 2015-11-05 15:07:52 -07:00
nvme_qpair.c nvme: mark a few more functions static 2015-12-23 08:59:49 -07:00
nvme.c Reduce NVME_MAX_IO_QUEUES to 1024. 2015-11-30 09:33:34 -07:00