Home
last modified time | relevance | path

Searched hist:"92084715 f4d296c99ac120b3b77cf72d5c194c86" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/scsi/
H A Dhpsa_cmd.hdiff 92084715f4d296c99ac120b3b77cf72d5c194c86 Fri Nov 14 17:26:54 CST 2014 Stephen M. Cameron <stephenmcameron@gmail.com> hpsa: fix allocation sizes for CISS_REPORT_LUNs commands

We were allocating roughly double the amount of memory
we should be due to ReportLUNdata and ExtendedReportLUNdata
containing a non-zero sized array but adding extra memory
to allocate as if the array were zero sized.

Track the logical and physical sizes separately.
Allocate the memory based on the specific data
structure sizes.

Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Webb Scales <webb.scales@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
H A Dhpsa.cdiff 92084715f4d296c99ac120b3b77cf72d5c194c86 Fri Nov 14 17:26:54 CST 2014 Stephen M. Cameron <stephenmcameron@gmail.com> hpsa: fix allocation sizes for CISS_REPORT_LUNs commands

We were allocating roughly double the amount of memory
we should be due to ReportLUNdata and ExtendedReportLUNdata
containing a non-zero sized array but adding extra memory
to allocate as if the array were zero sized.

Track the logical and physical sizes separately.
Allocate the memory based on the specific data
structure sizes.

Signed-off-by: Don Brace <don.brace@pmcs.com>
Reviewed-by: Webb Scales <webb.scales@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>