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
..
2018-12-28 14:57:10 -08:00
2016-02-29 17:10:53 -05:00
2016-02-29 17:10:53 -05:00
2017-08-18 14:01:08 -04:00
2016-02-29 17:10:53 -05:00
2018-01-16 20:38:18 -07:00
2016-03-16 13:50:53 -04:00
2017-08-16 11:27:44 -04:00