From: Keith Busch Date: Fri, 31 Jan 2014 23:53:39 +0000 (-0700) Subject: NVMe: Namespace use after free on surprise removal X-Git-Tag: v3.14-rc2~23^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ac27090f61ea6735a62b0a98c7669c833bcdc09;p=pandora-kernel.git NVMe: Namespace use after free on surprise removal An nvme block device may have open references when the device is removed. New commands may still be sent on the removed device, so we need to ref count the opens, return errors for new commands, and not free the namespace and nvme_dev until all references are closed. Signed-off-by: Keith Busch Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed