diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-13 12:18:38 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-15 14:59:47 -0700 |
commit | 104f268d439b3c21c83708e52946a4d8d37f3d0f (patch) | |
tree | d0e0b27d0a5e658e5e2bcb191b08b395ed8f8ccb /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6623e3e3cd78020016d3fa42555763178e94ab64 (diff) |
IB/uverbs: Improve lockdep_check
This is really being used as an assert that the expected usecnt
is being held and implicitly that the usecnt is valid. Rename it to
assert_uverbs_usecnt and tighten the checks to only accept valid
values of usecnt (eg 0 and < -1 are invalid).
The tigher checkes make the assertion cover more cases and is more
likely to find bugs via syzkaller/etc.
Fixes: 3832125624b7 ("IB/core: Add support for idr types")
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions