Skip to content

Commit

Permalink
RDS: IB: handle rds_ibdev release case instead of crashing the kernel
Browse files Browse the repository at this point in the history
Just in case we are still handling the QP receive completion while the
rds_ibdev is released, drop the connection instead of crashing the kernel.

Signed-off-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
  • Loading branch information
Santosh Shilimkar committed Oct 5, 2015
1 parent 0c28c04 commit 9441c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/rds/ib_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ static void rds_ib_tasklet_fn_recv(unsigned long data)
struct rds_ib_device *rds_ibdev = ic->rds_ibdev;
struct rds_ib_ack_state state;

BUG_ON(!rds_ibdev);
if (!rds_ibdev)
rds_conn_drop(conn);

rds_ib_stats_inc(s_ib_tasklet_call);

Expand Down

0 comments on commit 9441c97

Please sign in to comment.