浏览代码

resolve powerctrl bug

zhangbo 5 年之前
父节点
当前提交
68ee3049c6

二进制
app/bmc/bmc_app


+ 1 - 1
app/bmc/msghndlr/Chassis/ChassisDevice.c

@@ -283,7 +283,7 @@ ChassisControl (  uint8_t* pReq, uint8_t ReqLen,  uint8_t* pRes )
         break;
         break;
     }
     }
     UpdateFlash();
     UpdateFlash();
-    return sizeof (ChassisControlRes_T);
+    return sizeof(ChassisControlRes_T);
 }
 }
 
 
 
 

+ 1 - 1
app/goahead-3.6.5/src/libipmi/src/libipmi_Chassis.c

@@ -35,7 +35,7 @@
 
 
    @retval Returns LIBIPMI_STATUS_SUCCESS on success and error codes on failure
    @retval Returns LIBIPMI_STATUS_SUCCESS on success and error codes on failure
 */
 */
-uint16_t	IPMICMD_ChassisControl( IPMI20_UDS_SESSION_T *pUDSSession, int timeout, char cmd)
+uint16_t IPMICMD_ChassisControl( IPMI20_UDS_SESSION_T *pUDSSession, int timeout, char cmd)
 {
 {
 
 
     uint32_t		dwResLen;
     uint32_t		dwResLen;

+ 2 - 2
app/goahead-3.6.5/src/web_interface/src/remote_control.c

@@ -81,8 +81,8 @@ void chassisPwrCtrl(Webs *wp){
   	printf("websFlush ret = %d\n", ret);
   	printf("websFlush ret = %d\n", ret);
     websDone(wp);
     websDone(wp);
 
 
-    if(pwrAction)
-    	wfree(pwrAction);
+    // if(pwrAction)
+    // 	wfree(pwrAction);
     if(pStr)
     if(pStr)
         wfree(pStr);
         wfree(pStr);
     if(root)
     if(root)