Re: [PATCH] Fixup vpd page length calculation

2014-03-20 Thread James Bottomley
On Thu, 2014-03-20 at 08:19 +0100, Hannes Reinecke wrote: > The VPD page length parameter is not only used for the length, > but also to hold any error code. So it needs to be moved to an > integer. > And we should be resetting the default VPD page length after > each iteration so that we do not al

[PATCH] Fixup vpd page length calculation

2014-03-20 Thread Hannes Reinecke
The VPD page length parameter is not only used for the length, but also to hold any error code. So it needs to be moved to an integer. And we should be resetting the default VPD page length after each iteration so that we do not allocate overly large buffers. Signed-off-by: Hannes Reinecke --- d