From: Leon Romanovsky Date: Tue, 29 May 2018 11:56:15 +0000 (+0300) Subject: RDMA/cxgb3: Don't crash kernel just because IDR is full X-Git-Tag: v4.18-rc1~105^2~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd13a399e66c1b9b039064e8aa2f959eb90d6947;p=thirdparty%2Flinux.git 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: Leon Romanovsky Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/hw/cxgb3/iwch.h b/drivers/infiniband/hw/cxgb3/iwch.h index 837862287a298..c69bc4f520491 100644 --- a/drivers/infiniband/hw/cxgb3/iwch.h +++ b/drivers/infiniband/hw/cxgb3/iwch.h @@ -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; }