multipath-tools/path_priority/pp_alua rtpg.c
CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: [email protected] 2009-07-07 18:44:12
Modified files:
path_priority/pp_alua: rtpg.c
Log message:
Multipath needs to actually allocate the correct size buffer when it realizes that the existing rtpg buffer is too small.
path_priority/pp_alua/rtpg.c +2 -2
@@ -269,8 +269,8 @@ rc =do_rtpg (fd, buf, buflen);if (rc <0 ) goto out; - scsi_buflen = buf[0 ] <<24 | buf[1 ] <<16 | buf[2 ] <<8 | buf[3 ]; -if (buflen < (scsi_buflen +4 )) { + scsi_buflen = buf[0 ] <<24 | buf[1 ] <<16 | buf[2 ] <<8 | buf[3 ] +4 ; +if (buflen < scsi_buflen) {free (buf); buf = (unsigned char *)malloc (scsi_buflen);if (!buf) {