multipath-tools: fix the bug while processing vpd 0x83 designation descriptors
authorMoger, Babu <Babu.Moger@netapp.com>
Wed, 22 Feb 2012 18:09:00 +0000 (18:09 +0000)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Wed, 22 Feb 2012 21:45:36 +0000 (22:45 +0100)
commite80c428a607e6a75aa5aabd23bdd9f07faf0a2d5
tree09bc50ab4796608f71e337f63741eaaad7f89681
parent4028dfccc4a139d0e5ab9dd9ddb7507cce524c42
multipath-tools: fix the bug while processing vpd 0x83 designation descriptors

This patch fixes the bug while processing the vpd 0x83 designation descriptors.
Removing the buggy check(> sizeof(buf))while loping the descriptors. Sizeof(buf) will
always return 8 (in 64 bit machine). Descriptor length can be more than 8 bytes in
some cases. This was causing problems while configuring my storage with alua.

Signed-off-by: Babu Moger <babu.moger@netapp.com>
libmultipath/prioritizers/alua_rtpg.c