linux/drivers/infiniband/hw/cxgb3
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
..
cxio_hal.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
cxio_hal.h IB/cxgb3: remove cxio_dbg.c 2018-02-14 16:21:15 -07:00
cxio_resource.c cxgb3: Convert PDBG to pr_debug 2017-04-20 16:13:20 -04:00
cxio_resource.h
cxio_wr.h tree-wide: fix comment/printk typos 2010-11-01 15:38:34 -04:00
iwch_cm.c Merge branch 'timer_setup' into for-next 2017-10-18 13:12:09 -04:00
iwch_cm.h cxgb3: Convert PDBG to pr_debug 2017-04-20 16:13:20 -04:00
iwch_cq.c RDMA/cxgb3: Make iwch_poll_cq_one() easier to analyze 2018-07-09 12:55:28 -06:00
iwch_ev.c cxgb3: Convert PDBG to pr_debug 2017-04-20 16:13:20 -04:00
iwch_mem.c cxgb3: Convert PDBG to pr_debug 2017-04-20 16:13:20 -04:00
iwch_provider.c RDMA: Introduce and use rdma_device_to_ibdev() 2019-01-14 13:12:03 -07:00
iwch_provider.h RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
iwch_qp.c RDMA, core and ULPs: Declare ib_post_send() and ib_post_recv() arguments const 2018-07-30 20:09:34 -06:00
iwch.c RDMA: Provide safe ib_alloc_device() function 2019-01-30 15:52:30 -07:00
iwch.h RDMA/cxgb3: Don't crash kernel just because IDR is full 2018-06-01 11:16:23 -04:00
Kconfig IB/cxgb3: remove cxio_dbg.c 2018-02-14 16:21:15 -07:00
Makefile infiniband: prefix header search paths with $(srctree)/ 2019-01-25 15:28:50 -07:00
tcb.h