summaryrefslogtreecommitdiffstats
path: root/rfc.sh
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2017-10-18 08:06:24 +0530
committerjiffin tony Thottan <jthottan@redhat.com>2017-10-25 11:46:40 +0000
commit23c7a47f6b65005ed78086b176e0ca7b42494467 (patch)
treee04c70b3cf1a0108dba4905ff584aa49267f1e7b /rfc.sh
parent6d10d0e10cc78560d68f4a81024709abc9e0fdaf (diff)
glusterfsd: Dereferencing the null pointer
Problem: When control reaches to out, one of (iobref, iobuf, frame) can be null.for iobref, iobuf iobref_unref() and iobuf_unref() functions are called respectively, which are using GF_VALIDATE_OR_GOTO(), so there won't be null pointer dereference. But for frame without null checking STACK_DESTROY(frame->root) is called causing null pointer dereference. Fix: adding a line for null checking, the function STACK_DESTROY(frame->root) is called only when frame is not null. Change-Id: I3a6684c11fb7b694b81d6ad4fec3bced5562ad88 BUG: 1505370 Signed-off-by: Sanju Rakonde <srakonde@redhat.com> (cherry picked from commit 87bd25b64ae34cce95e87e724acfeab4c13d60a4)
Diffstat (limited to 'rfc.sh')
0 files changed, 0 insertions, 0 deletions