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
..
2015-06-12 14:49:18 -04:00
2019-01-07 11:43:03 -07:00
2018-12-12 07:40:16 -07:00
2018-06-12 16:19:22 -07:00
2018-12-12 07:40:16 -07:00
2016-05-13 13:37:18 -04:00
2018-12-20 15:18:24 -07:00
2018-12-12 07:40:16 -07:00
2016-03-03 10:20:25 -05:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-12-12 07:40:16 -07:00
2018-10-16 12:47:40 -04:00
2016-03-03 10:20:25 -05:00
2018-12-20 15:18:24 -07:00
2019-01-24 09:22:30 -07:00