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

[dm-devel] [multipath 1/1] EMC Clariion path checker: change scsi read buffer size to 4096 bytes



648833108fc5a95cbe15bd779289e98165c34d25 changed the scsi read buffer to 4096
bytes but forgot the emc patch checker. This fixes an immediate segfault on
startup.

Signed-off-by: Guido Guenther <agx bogon sigxcpu org>
---
 libcheckers/emc_clariion.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libcheckers/emc_clariion.c b/libcheckers/emc_clariion.c
index d801b42..6c7167e 100644
--- a/libcheckers/emc_clariion.c
+++ b/libcheckers/emc_clariion.c
@@ -176,7 +176,7 @@ int emc_clariion(struct checker * c)
 	 * Issue read on active path to determine if inactive snapshot.
 	 */
 	if (sense_buffer[4] == 2) {/* if active path */
-		unsigned char buf[512];
+		unsigned char buf[4096];
 
 		ret = sg_read(c->fd, &buf[0], sbb = &sb[0]);
 		if (ret == PATH_DOWN) {
-- 
1.5.2.4


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