aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/iw_recv.c
diff options
context:
space:
mode:
authorAndy Grover <andy.grover@oracle.com>2010-03-11 08:49:55 -0500
committerDavid S. Miller <davem@davemloft.net>2010-03-17 00:16:53 -0400
commit735f61e62611161588123930823af6e6a9fd5c2c (patch)
treed07e16026909daa692ddab9c7b0801cc418cb3bc /net/rds/iw_recv.c
parent87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc (diff)
RDS: Do not BUG() on error returned from ib_post_send
BUGging on a runtime error code should be avoided. This patch also eliminates all other BUG()s that have no real reason to exist. Signed-off-by: Andy Grover <andy.grover@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/iw_recv.c')
-rw-r--r--net/rds/iw_recv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rds/iw_recv.c b/net/rds/iw_recv.c
index 54af7d6b92da..337e4e5025e2 100644
--- a/net/rds/iw_recv.c
+++ b/net/rds/iw_recv.c
@@ -468,8 +468,8 @@ static void rds_iw_send_ack(struct rds_iw_connection *ic, unsigned int adv_credi
468 set_bit(IB_ACK_REQUESTED, &ic->i_ack_flags); 468 set_bit(IB_ACK_REQUESTED, &ic->i_ack_flags);
469 469
470 rds_iw_stats_inc(s_iw_ack_send_failure); 470 rds_iw_stats_inc(s_iw_ack_send_failure);
471 /* Need to finesse this later. */ 471
472 BUG(); 472 rds_iw_conn_error(ic->conn, "sending ack failed\n");
473 } else 473 } else
474 rds_iw_stats_inc(s_iw_ack_sent); 474 rds_iw_stats_inc(s_iw_ack_sent);
475} 475}