linux/drivers/infiniband/hw/cxgb4
Leon Romanovsky 459cc69fa4 RDMA: Provide safe ib_alloc_device() function
All callers to ib_alloc_device() provide a larger size than struct
ib_device and rely on the fact that struct ib_device is embedded in their
driver specific structure as the first member.

Provide a safer variant of ib_alloc_device() that checks and enforces this
approach to make sure the drivers are using it right.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-01-30 15:52:30 -07:00
..
cm.c RDMA/iw_cxgb4: Fix the unchecked ep dereference 2019-01-15 15:51:46 -07:00
cq.c iw_cxgb4: Use proper enumerated type in c4iw_bar2_addrs 2018-09-25 14:37:17 -06:00
device.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
ev.c rdma/cxgb4: Add support for 64Byte cqes 2018-07-13 11:52:55 -06:00
id_table.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
iw_cxgb4.h iw_cxgb4: pass window scale in flowc work request 2018-08-08 09:54:55 -06:00
Kconfig iw_cxgb4: add INFINIBAND_ADDR_TRANS dependency 2018-06-04 09:35:24 -06:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
mem.c IB/{core,hw}: Have ib_umem_get extract the ib_ucontext from ib_udata 2019-01-10 17:07:45 -07:00
provider.c RDMA: Introduce and use rdma_device_to_ibdev() 2019-01-14 13:12:03 -07:00
qp.c Merge branch 'devx-async' into k.o/for-next 2019-01-29 13:49:31 -07:00
resource.c rdma/cxgb4: Add support for kernel mode SRQ's 2018-07-25 21:08:04 -06:00
restrack.c iw_cxgb4: provide detailed driver-specific MR information 2018-05-24 09:39:25 -06:00
t4.h PCI: Remove pci_unmap_addr() wrappers for DMA API 2018-10-10 15:45:45 -05:00
t4fw_ri_api.h iw_cxgb4: Support FW write completion WR 2018-08-02 20:16:02 -06:00