1
0
Fork 0

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>
hifive-unleashed-5.1
Leon Romanovsky 2018-05-29 14:56:15 +03:00 committed by Doug Ledford
parent 6b1ca7ece1
commit cd13a399e6
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}