lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1305321782-30566-1-git-send-email-julia@diku.dk>
Date:	Fri, 13 May 2011 23:23:02 +0200
From:	Julia Lawall <julia@...u.dk>
To:	Christoph Hellwig <hch@...radead.org>
Cc:	kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] fs/freevxfs/vxfs_fshead.c: Convert kfree to kmem_cache_free

From: Julia Lawall <julia@...u.dk>

vxfs_blkiget allocates its return value using kmem_cache_alloc, so that
value should be freed using kmem_cache_free.  The cache is already made
available via vxfs_extern.h.

Signed-off-by: Julia Lawall <julia@...u.dk>

---
 fs/freevxfs/vxfs_fshead.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/freevxfs/vxfs_fshead.c b/fs/freevxfs/vxfs_fshead.c
index c9a6a94..86b59e7 100644
--- a/fs/freevxfs/vxfs_fshead.c
+++ b/fs/freevxfs/vxfs_fshead.c
@@ -198,6 +198,6 @@ vxfs_read_fshead(struct super_block *sbp)
 	iput(infp->vsi_fship);
 	return -EINVAL;
  out_free_fship:
- 	kfree(vip);
+	kmem_cache_free(vxfs_inode_cachep, vip);
 	return -EINVAL;
 }

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ