diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2020-08-25 13:35:38 -0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-08-31 12:10:11 -0300 |
commit | 5d985d724bfa3ab7acf9edc2b3042f66fca9da99 (patch) | |
tree | 497823999f59c87c4247510ec9a8247b7ad617e6 /include/rdma/ib_umem.h | |
parent | 074bf2c2c7a1f5722eabccee7d919fe20ada0cda (diff) | |
download | lwn-5d985d724bfa3ab7acf9edc2b3042f66fca9da99.tar.gz lwn-5d985d724bfa3ab7acf9edc2b3042f66fca9da99.zip |
RDMA/core: Trigger a WARN_ON if the driver causes uobjects to become leaked
Drivers that fail destroy can cause uverbs to leak uobjects. Drivers are
required to always eventually destroy their ubojects, so trigger a WARN_ON
to detect this driver bug.
Link: https://lore.kernel.org/r/0-v1-b1e0ed400ba9+f7-warn_destroy_ufile_hw_jgg@nvidia.com
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/rdma/ib_umem.h')
0 files changed, 0 insertions, 0 deletions