[stgt] [PATCH] set cmd_complete to address of bs_sg_cmd_complete()
Mark Harvey
markh794 at gmail.com
Thu Jul 8 03:45:21 CEST 2010
>From c1a3af4e89116ec76039411fe1cf3591e4ddb90e Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794 at gmail.com>
Date: Thu, 8 Jul 2010 07:08:53 +1000
Subject: Set cmd_complete to address of bs_sg_cmd_complete()
Signed-off-by: Mark Harvey <markh794 at gmail.com>
---
usr/bs_sg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/usr/bs_sg.c b/usr/bs_sg.c
index 6e3c90c..9e519c0 100644
--- a/usr/bs_sg.c
+++ b/usr/bs_sg.c
@@ -381,7 +381,7 @@ static int bs_sg_open(struct scsi_lu *lu, char
*path, int *fd, uint64_t *size)
cmd_complete = &bs_bsg_cmd_complete;
err = init_bsg_device(sg_fd);
} else {
- cmd_complete = bs_sg_cmd_complete;
+ cmd_complete = &bs_sg_cmd_complete;
err = init_sg_device(sg_fd);
}
if (err) {
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list