Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd13a399 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Doug Ledford
Browse files

RDMA/cxgb3: Don't crash kernel just because IDR is full



cxgb3 driver properly handles errors returned by IDR, so there is no
need to have special case (kernel crash) just because IDR is full.

Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 6b1ca7ec
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -162,7 +162,6 @@ static inline int insert_handle(struct iwch_dev *rhp, struct idr *idr,
	spin_unlock_irq(&rhp->lock);
	idr_preload_end();

	BUG_ON(ret == -ENOSPC);
	return ret < 0 ? ret : 0;
}