mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 00:20:29 +00:00
Fixed kernel crash when running devinfo
When calling to ib_uverbs_cleanup_ucontext, there is a call to mutex_lock of xrcd_table_mutex, which was not initialized. Added missing initialization for xrcd_table_mutex. Submitted by: Orit Moskovich (oritm mellanox.com) Approved by: re
This commit is contained in:
parent
e18c176d9d
commit
ef4f67f0b8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255973
|
@ -296,6 +296,8 @@ int ib_register_device(struct ib_device *device,
|
|||
INIT_LIST_HEAD(&device->client_data_list);
|
||||
spin_lock_init(&device->event_handler_lock);
|
||||
spin_lock_init(&device->client_data_lock);
|
||||
device->ib_uverbs_xrcd_table = RB_ROOT;
|
||||
mutex_init(&device->xrcd_table_mutex);
|
||||
|
||||
ret = read_port_table_lengths(device);
|
||||
if (ret) {
|
||||
|
|
Loading…
Reference in a new issue