readsector0: block count calculation wrong
authorHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 08:06:59 +0000 (10:06 +0200)
committerHannes Reinecke <hare@suse.de>
Tue, 3 May 2011 08:06:59 +0000 (10:06 +0200)
commit71dab640429d0017a05b22d0033e41afe0afeac4
treeb61b1319825b7985ce38dc6d4401a67f998acf8a
parent6c4dddb70e890d7f6e92bcca572490b944cca522
readsector0: block count calculation wrong

readsector0/libsg is getting the number of blocks wrong, as it
doesn't check the length of the buffer.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/checkers/emc_clariion.c
libmultipath/checkers/libsg.c
libmultipath/checkers/libsg.h
libmultipath/checkers/readsector0.c