diff options
author | Yan, Zheng <zyan@redhat.com> | 2019-04-18 11:24:57 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-02 09:58:54 +0200 |
commit | 950eec8126001c63ec6055d22d370d8ab833ed4f (patch) | |
tree | ad184651a5af0c9aada2e1511b1a71272d56674c /drivers/base | |
parent | 246d2bf32da1df979b2bb0b4ca38b9b2b6ac2bf4 (diff) | |
download | linux-stable-950eec8126001c63ec6055d22d370d8ab833ed4f.tar.gz linux-stable-950eec8126001c63ec6055d22d370d8ab833ed4f.tar.bz2 linux-stable-950eec8126001c63ec6055d22d370d8ab833ed4f.zip |
ceph: fix ci->i_head_snapc leak
commit 37659182bff1eeaaeadcfc8f853c6d2b6dbc3f47 upstream.
We missed two places that i_wrbuffer_ref_head, i_wr_ref, i_dirty_caps
and i_flushing_caps may change. When they are all zeros, we should free
i_head_snapc.
Cc: stable@vger.kernel.org
Link: https://tracker.ceph.com/issues/38224
Reported-and-tested-by: Luis Henriques <lhenriques@suse.com>
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions