summaryrefslogtreecommitdiffstats
path: root/fs/jffs2/erase.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2006-05-21 02:28:05 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-21 02:28:05 +0200
commit3560160aa26ebced1944aaa2e7e436d2a1b1bf70 (patch)
treeee0bb33931cef644b1e5f6794e6bed833f33d42c /fs/jffs2/erase.c
parent[JFFS2] Correct handling of JFFS2_FEATURE_RWCOMPAT_COPY nodes. (diff)
downloadlinux-3560160aa26ebced1944aaa2e7e436d2a1b1bf70.tar.xz
linux-3560160aa26ebced1944aaa2e7e436d2a1b1bf70.zip
[JFFS2] Fix memory leak in scan code; improve comments.
If we had to allocate extra space for the summary node, we weren't correctly freeing it when jffs2_sum_scan_sumnode() returned nonzero -- which is both the success and the failure case. Only when it returned zero, which means fall through to the full scan, were we correctly freeing the buffer. Document the meaning of those return codes while we're at it. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'fs/jffs2/erase.c')
0 files changed, 0 insertions, 0 deletions