Explorar o código

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 <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Leon Romanovsky %!s(int64=7) %!d(string=hai) anos
pai
achega
cd13a399e6
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      drivers/infiniband/hw/cxgb3/iwch.h

+ 0 - 1
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;
 }