Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139746
b: refs/heads/master
c: 6e873ec
h: refs/heads/master
v: v3
  • Loading branch information
Robin Holt authored and Linus Torvalds committed Apr 3, 2009
1 parent c514baa commit 272cf0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1bc4faa59b0e6aa5ede2d5d8fa74b6e051b31dca
refs/heads/master: 6e873ec71d091f52510f6aa9bc71d4732438522a
10 changes: 5 additions & 5 deletions trunk/drivers/misc/sgi-xp/xpc_sn2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1744,20 +1744,20 @@ xpc_clear_remote_msgqueue_flags_sn2(struct xpc_channel *ch)
{
struct xpc_channel_sn2 *ch_sn2 = &ch->sn.sn2;
struct xpc_msg_sn2 *msg;
s64 put;
s64 put, remote_nentries = ch->remote_nentries;

/* flags are zeroed when the buffer is allocated */
if (ch_sn2->remote_GP.put < ch->remote_nentries)
if (ch_sn2->remote_GP.put < remote_nentries)
return;

put = max(ch_sn2->w_remote_GP.put, ch->remote_nentries);
put = max(ch_sn2->w_remote_GP.put, remote_nentries);
do {
msg = (struct xpc_msg_sn2 *)((u64)ch_sn2->remote_msgqueue +
(put % ch->remote_nentries) *
(put % remote_nentries) *
ch->entry_size);
DBUG_ON(!(msg->flags & XPC_M_SN2_READY));
DBUG_ON(!(msg->flags & XPC_M_SN2_DONE));
DBUG_ON(msg->number != put - ch->remote_nentries);
DBUG_ON(msg->number != put - remote_nentries);
msg->flags = 0;
} while (++put < ch_sn2->remote_GP.put);
}
Expand Down

0 comments on commit 272cf0b

Please sign in to comment.