]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: Protect against badly formatted CQEs
authorKeith Busch <keith.busch@intel.com>
Fri, 25 Apr 2014 00:53:50 +0000 (18:53 -0600)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Mon, 5 May 2014 14:41:25 +0000 (10:41 -0400)
commit7d2cdb6357e8037e96bf09255ef75cb01e4715d0
treeab2d9e4f3a69c4f751d661b7c76f751f4b6fa9c0
parent9a9e326806c241d18313d30f4d4270c114d4a66a
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