commit | 55aeed06544f675f25aef06a8c47b0b6b8850f4f | [log] [tgz] |
---|---|---|
author | Jason Gunthorpe <jgunthorpe@obsidianresearch.com> | Tue Aug 04 15:23:34 2015 -0600 |
committer | Doug Ledford <dledford@redhat.com> | Sun Aug 30 18:08:50 2015 -0400 |
tree | b44faef6b5eff332fb0317a6802de01c98b92742 | |
parent | e999869548b9ab97b7dffa053ba2fee81c31d069 [diff] |
IB/core: Make ib_alloc_device init the kobject This gets rid of the weird in-between state where struct ib_device was allocated but the kobject didn't work. Consequently ib_device_release is now guaranteed to be called in all situations and we needn't duplicate its kfrees on error paths. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Signed-off-by: Doug Ledford <dledford@redhat.com>