From: Stephen M. Cameron Date: Fri, 14 Nov 2014 23:26:54 +0000 (-0600) Subject: hpsa: fix allocation sizes for CISS_REPORT_LUNs commands X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~21^2^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92084715f4d296c99ac120b3b77cf72d5c194c86;p=pandora-kernel.git 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 Reviewed-by: Webb Scales Signed-off-by: Christoph Hellwig --- Reading git-diff-tree failed