NVMe: Protect against badly formatted CQEs
authorKeith Busch <keith.busch@intel.com>
Fri, 25 Apr 2014 00:53:50 +0000 (18:53 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 29 May 2014 15:54:27 +0000 (09:54 -0600)
commitb3ba33c1759d010ca2e21e55b221409eb8bb6fee
tree1d48126196eaef53cedf98edcf6dccaa3b6f846d
parent12c6eeebbcb7ba499200e71210fc0f80551eaa2c
NVMe: Protect against badly formatted CQEs

If a misbehaving device posts a CQE with a command id < depth but for
one that was never allocated, the command info will have a callback
function set to NULL and we don't want to try invoking that.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme-core.c