Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360827
b: refs/heads/master
c: 7dac1b5
h: refs/heads/master
i:
  360825: 4ef49bb
  360823: 77a6e85
v: v3
  • Loading branch information
Cong Wang authored and David S. Miller committed Mar 4, 2013
1 parent e68b7f1 commit 9e5ee51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: acac8406cd523a3afbd6c6db31e9f763644bf6ba
refs/heads/master: 7dac1b514a00817ddb43704068c14ffd8b8fba19
5 changes: 1 addition & 4 deletions trunk/net/rds/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ static void rds_message_purge(struct rds_message *rm)
void rds_message_put(struct rds_message *rm)
{
rdsdebug("put rm %p ref %d\n", rm, atomic_read(&rm->m_refcount));
if (atomic_read(&rm->m_refcount) == 0) {
printk(KERN_CRIT "danger refcount zero on %p\n", rm);
WARN_ON(1);
}
WARN(!atomic_read(&rm->m_refcount), "danger refcount zero on %p\n", rm);
if (atomic_dec_and_test(&rm->m_refcount)) {
BUG_ON(!list_empty(&rm->m_sock_item));
BUG_ON(!list_empty(&rm->m_conn_item));
Expand Down

0 comments on commit 9e5ee51

Please sign in to comment.