freebsd-skq/sys/ofed
hselasky b76d21e418 Fix NULL pointer dereference during device removal in ibcore.
As part of ib_uverbs_remove_one which might be triggered upon
reset flow, we trigger IB_EVENT_DEVICE_FATAL event to userspace
application.
If device was removed after uverbs fd was opened but before
ib_uverbs_get_context was called, the event file will be accessed
before it was allocated, result in NULL pointer dereference:

Linux commit:
870201f95fcbd19538aef630393fe9d583eff82e

MFC after:		1 week
Sponsored by:		Mellanox Technologies
2018-07-17 09:16:54 +00:00
..
drivers/infiniband Fix NULL pointer dereference during device removal in ibcore. 2018-07-17 09:16:54 +00:00
include Add support for prio-tagged traffic for RDMA in ibcore. 2018-07-17 09:11:53 +00:00