Fix some broken logic used in obtaining the certain config pages. I'm

surprised that this even pretended to work.

PR:		215793
Submitted by:	longwitz@incore.de
This commit is contained in:
Scott Long 2017-07-27 05:31:48 +00:00
parent 059178b639
commit 99cc4d5177
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321604

View file

@ -365,8 +365,7 @@ mps_read_config_page(int fd, U8 PageType, U8 PageNumber, U32 PageAddress,
req.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT;
req.PageAddress = PageAddress;
req.Header = header;
req.Header.PageLength = reply.Header.PageLength;
if (reply.Header.PageLength == 0)
if (req.Header.PageLength == 0)
req.Header.PageLength = 4;
len = req.Header.PageLength * 4;