-----BEGIN PGP SIGNATURE-----
iQIcBAABAgAGBQJYM3FbAAoJEL2+eyfA3jBXMTQP/1H8ifACMq+09fAyCR9IfXkm oT9HMIrb+iGhckW/z6R0tTfjETvUOg+1cRKPAKi7YUrdYMkyZLhcmAxxpIqtHXeT rNqr38fYGYCK3ZL62gRfQx1rhPoNGKmh3Sv0DMi38FExF2r4pt6O6HTO3v8mJUHM BG8inzATzJEuZ2gKDpO8i/cRIROwCaZCM3l9vakMKiANV6x+qi57/m7XeMU1tb8u u9QSLzS4gy371wf3NSma09hRFIOBMydNfO0eO3mTy2YOU1rn4JKIbe97jBNnxO8m TT5NYNZhfuICSw93VdO4LdQ9Rh8BI2WShaw9q92sBLNXd0wbJDgfacwrVbxrvnOb zWM35X1/GwVkbNmlHoQI1VlQ2cDQMQCEUpNz9Aj5aafLbwWeIzm3acyMKwpci7xq lanXio7MGLwMjqXUoTIv8g3rEq5f6v3aPZt4HrqYyKtKXgfJw/mvqaemzMj2+8aZ YzPCEEfn4L/f1SM/1iDNrgARyzgETsakedeLPL2PdqrCCTj4XgAB9xaJO5auLaQd GtnPlTXcjktZk1srgLfXvEBAqw19MJW/Oi4opVvu5ao1AYpX2iDmk1DglRJ+eTGj uNMi7wEmUPG9cNos/i43549NOlcJCY7iCUQ844yTbsTBAmCiju2Q4HSM9/pF3Im7 nCP0RDL3WKa3xI4PoN3c =vgtW -----END PGP SIGNATURE----- Merge remote-tracking branch 'jtc/tags/block-pull-request' into staging # gpg: Signature made Mon 21 Nov 2016 10:12:43 PM GMT # gpg: using RSA key 0xBDBE7B27C0DE3057 # gpg: Good signature from "Jeffrey Cody <jcody@redhat.com>" # gpg: aka "Jeffrey Cody <jeff@codyprime.org>" # gpg: aka "Jeffrey Cody <codyprime@gmail.com>" # Primary key fingerprint: 9957 4B4D 3474 90E7 9D98 D624 BDBE 7B27 C0DE 3057 * jtc/tags/block-pull-request: gluster: Fix use after free in glfs_clear_preopened() Message-id: 1479766499-29972-1-git-send-email-jcody@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
commit
06bf33cfe7
@ -239,12 +239,13 @@ static glfs_t *glfs_find_preopened(const char *volume)
|
||||
static void glfs_clear_preopened(glfs_t *fs)
|
||||
{
|
||||
ListElement *entry = NULL;
|
||||
ListElement *next;
|
||||
|
||||
if (fs == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
QLIST_FOREACH(entry, &glfs_list, list) {
|
||||
QLIST_FOREACH_SAFE(entry, &glfs_list, list, next) {
|
||||
if (entry->saved.fs == fs) {
|
||||
if (--entry->saved.ref) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user