fix reservations being cancelled. Ticket 1515 and many others.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2239 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2004-01-22 01:05:49 +00:00
1 parent 99cb8b0992
commit c1ee53baa0
2 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -607,7 +607,7 @@ static void bmcsensors_rcv_msg(struct ipmi_msg *msg)
switch(state) {
case STATE_INIT:
case STATE_RESERVE:
resid = (((u16)msg->data[2]) << 8) || msg->data[1];
resid = (((u16)msg->data[2]) << 8) | msg->data[1];
#ifdef DEBUG
printk(KERN_DEBUG "bmcsensors.o: Got first resid 0x%.4x\n", resid);
#endif
@@ -625,7 +625,7 @@ static void bmcsensors_rcv_msg(struct ipmi_msg *msg)
break;
case STATE_UNCANCEL:
resid = (((u16)msg->data[2]) << 8) || msg->data[1];
resid = (((u16)msg->data[2]) << 8) | msg->data[1];
#ifdef DEBUG
printk(KERN_DEBUG "bmcsensors.o: Got new resid 0x%.4x\n", resid);
#endif