Author: scottl
Date: Thu Jul 27 05:31:48 2017
New Revision: 321604
URL: https://svnweb.freebsd.org/changeset/base/321604

Log:
  Fix some broken logic used in obtaining the certain config pages.  I'm
  surprised that this even pretended to work.
  
  PR:           215793
  Submitted by: longw...@incore.de

Modified:
  head/usr.sbin/mpsutil/mps_cmd.c

Modified: head/usr.sbin/mpsutil/mps_cmd.c
==============================================================================
--- head/usr.sbin/mpsutil/mps_cmd.c     Thu Jul 27 02:53:18 2017        
(r321603)
+++ head/usr.sbin/mpsutil/mps_cmd.c     Thu Jul 27 05:31:48 2017        
(r321604)
@@ -365,8 +365,7 @@ mps_read_config_page(int fd, U8 PageType, U8 PageNumbe
        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;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to