]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Pipe: take a ref to existing while we are waiting 9238/head
authorSamuel Just <sjust@redhat.com>
Thu, 12 May 2016 23:57:49 +0000 (16:57 -0700)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jun 2016 13:25:09 +0000 (15:25 +0200)
commit055427cf58857eeadda11ed1b3381e84e384bc85
tree54028db50da0cc441b36390f7318c2bb80df510c
parentb9b5f966ddfe7e706c038db204271ee662e0d825
Pipe: take a ref to existing while we are waiting

Otherwise, if it is reaped while we are waiting, it'll be a
use-after-free.

Fixes: http://tracker.ceph.com/issues/15870
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit b224912d249453d754fc0478d3680f8cfa1a5c22)

Conflicts:
    src/msg/simple/Pipe.cc: nullptr changed to 0 because hammer is not compiled
    with -std=c++11
src/msg/simple/Pipe.cc