[PATCH] set cmd_complete to address of bs_sg_cmd_complete()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From c1a3af4e89116ec76039411fe1cf3591e4ddb90e Mon Sep 17 00:00:00 2001
From: Mark Harvey <markh794@xxxxxxxxx>
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@xxxxxxxxx>
---
 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux