diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2018-02-12 15:45:47 +1030 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 19:11:01 +0100 |
commit | e0c24bddf07c7735860fe654061938218732c92d (patch) | |
tree | a9b2deb85f7c3a08e2a7f4eeba99e0a471136a66 /Documentation | |
parent | 638bd9ac847e8cb25f59b6bdca29830ece477ed6 (diff) | |
download | linux-stable-e0c24bddf07c7735860fe654061938218732c92d.tar.gz linux-stable-e0c24bddf07c7735860fe654061938218732c92d.tar.bz2 linux-stable-e0c24bddf07c7735860fe654061938218732c92d.zip |
fsi: master: Clarify master lifetimes & fix use-after-free in hub master
Once we call fsi_master_unregister, the core will put_device,
potentially freeing the hub master. This change adds a comment
explaining the lifetime of an allocated fsi_master.
We then add a reference from the driver to the hub master, so it stays
around until we've finished ->remove().
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Tested-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions