[PATCH] NVMe: fix uninitialized iod compiler warning
Keith Busch
keith.busch at intel.com
Wed Jul 25 18:04:29 EDT 2012
Signed-off-by: Keith Busch <keith.busch at intel.com>
---
drivers/block/nvme.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/block/nvme.c b/drivers/block/nvme.c
index 38b9c73..4692c8e 100644
--- a/drivers/block/nvme.c
+++ b/drivers/block/nvme.c
@@ -1158,7 +1158,7 @@ static int nvme_user_admin_cmd(struct nvme_ns *ns,
struct nvme_admin_cmd cmd;
struct nvme_command c;
int status, length;
- struct nvme_iod *iod;
+ struct nvme_iod *iod = NULL;
if (!capable(CAP_SYS_ADMIN))
return -EACCES;
--
1.7.0.4
More information about the Linux-nvme
mailing list