]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
nvme: fix out of memory behavior
authorJulian Stecklina <jsteckli@amazon.de>
Tue, 3 Oct 2017 13:47:17 +0000 (15:47 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 6 Oct 2017 13:16:58 +0000 (09:16 -0400)
commitf703604b30958312e64a5b7fc74c606a2ececc15
tree668a56423c5897f74e3b4294230a5808192977f1
parent4b48839999c696b732ee6b2a03b18a47d9d324c2
nvme: fix out of memory behavior

If the allocation of I/O queues ran out of memory, the code would fail to detect
that and happily use these queues at address zero. For me this happens for
systems with more than 7 NVMe controllers.

Fix the out of memory handling to gracefully handle this case.

Signed-off-by: Julian Stecklina <jsteckli@amazon.de>
src/hw/nvme.c