commit | 0a07fc8cd01b6838d999a5eacaa99fe90b8f768b | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Wed Mar 29 15:30:24 2017 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Thu May 04 09:19:20 2017 +0200 |
tree | 266cad4b91bc6eaf3be28e749e3228c1baf37a83 | |
parent | 76201b6354bb3aa31c7ba2bd42b9cbb8dda71c44 [diff] |
ceph: fix potential use-after-free __unregister_session() free the session if it drops the last reference. We should grab an extra reference if we want to use session after __unregister_session(). Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>