summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-05-22 08:41:13 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-05-22 08:41:13 -0700
commit6a44587ee716ac911082cbdec766e5b3f051c071 (patch)
tree7555f172eb84ca787ed56529640c482b72bdf58b /fs
parent5ae115af1dd47734b8f5ecc30b34b7b594b87c57 (diff)
parentd5046853634a8d73f28bad3cf68d182c4a99035d (diff)
downloadop-kernel-dev-6a44587ee716ac911082cbdec766e5b3f051c071.zip
op-kernel-dev-6a44587ee716ac911082cbdec766e5b3f051c071.tar.gz
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ryusuke/nilfs2: nilfs2: fix memory leak in nilfs_ioctl_clean_segments
Diffstat (limited to 'fs')
-rw-r--r--fs/nilfs2/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nilfs2/ioctl.c b/fs/nilfs2/ioctl.c
index 50ff3f2..d6759b9 100644
--- a/fs/nilfs2/ioctl.c
+++ b/fs/nilfs2/ioctl.c
@@ -576,7 +576,7 @@ static int nilfs_ioctl_clean_segments(struct inode *inode, struct file *filp,
ret = nilfs_clean_segments(inode->i_sb, argv, kbufs);
out_free:
- while (--n > 0)
+ while (--n >= 0)
vfree(kbufs[n]);
kfree(kbufs[4]);
return ret;
OpenPOWER on IntegriCloud