diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-05-29 14:56:15 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-06-01 11:16:23 -0400 |
commit | cd13a399e66c1b9b039064e8aa2f959eb90d6947 (patch) | |
tree | 0a7c973931aca97560dbf5bc399bbedb41ec4293 /drivers/infiniband | |
parent | 6b1ca7ece15e94251d1d0d919f813943e4a58059 (diff) | |
download | linux-stable-cd13a399e66c1b9b039064e8aa2f959eb90d6947.tar.gz linux-stable-cd13a399e66c1b9b039064e8aa2f959eb90d6947.tar.bz2 linux-stable-cd13a399e66c1b9b039064e8aa2f959eb90d6947.zip |
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch.h b/drivers/infiniband/hw/cxgb3/iwch.h index 837862287a29..c69bc4f52049 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; } |