kernel-fxtec-pro1x/fs
Julia Lawall 36f97bc617 [JFFS2] Add missing call to posix_acl_release
posix_acl_clone does a memory allocation and sets a reference count, so
posix_acl_release is needed afterwards to free it.

The problem was fixed using the following semantic patch.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T;
identifier E;
expression E1, E2;
int ret;
statement S;
@@

  T E;
  <+...
(
  E = \(posix_acl_clone\|posix_acl_alloc\|posix_acl_dup\)(...);
  if (E == NULL) S
|
  if ((E = \(posix_acl_clone\|posix_acl_alloc\|posix_acl_dup\)(...)) == NULL) S
)
  ... when != E2 = E
      when strict
(
  posix_acl_release(E);
|
  E1 = E;
|
+ posix_acl_release(E);
  return;
|
+ posix_acl_release(E);
  return ret;
)
  ...+>
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
2008-01-08 07:48:58 +00:00
..
9p 9p: fix memleak in fs/9p/v9fs.c 2007-10-23 13:48:50 -05:00
adfs
affs
afs
autofs Use task_pid_nr() instead of pid_nr(task_pid()) 2007-10-19 11:53:43 -07:00
autofs4
befs
bfs
cifs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
coda
configfs
cramfs
debugfs [PATCH] pass dentry to audit_inode()/audit_inode_child() 2007-10-21 02:37:18 -04:00
devpts
dlm Use helpers to obtain task pid in printks 2007-10-19 11:53:43 -07:00
ecryptfs [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
efs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
exportfs exportfs: update documentation 2007-10-22 08:13:21 -07:00
ext2 exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
ext3 exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
ext4 exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
fat exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
freevxfs
fuse
gfs2 exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
hfs
hfsplus
hostfs
hpfs
hppfs
hugetlbfs
isofs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
jbd
jbd2
jffs2 [JFFS2] Add missing call to posix_acl_release 2008-01-08 07:48:58 +00:00
jfs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
lockd
minix
msdos
ncpfs
nfs NFS: Fix for bug in handling of errors for O_DIRECT writes 2007-10-23 16:41:21 -07:00
nfs_common
nfsd Merge branch 'sg' of git://git.kernel.dk/linux-2.6-block 2007-10-22 19:11:06 -07:00
nls
ntfs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
ocfs2 exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
openpromfs
partitions
proc [NET]: Marking struct pernet_operations __net_initdata was inappropriate 2007-10-26 22:54:53 -07:00
qnx4
ramfs
reiserfs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
romfs
smbfs
sysfs sysfs: trivial: fix sysfs_create_file kerneldoc spelling mistake 2007-10-20 03:14:32 +02:00
sysv
udf
ufs
vfat
xfs exportfs: make struct export_operations const 2007-10-22 08:13:21 -07:00
aio.c
anon_inodes.c
attr.c
bad_inode.c
binfmt_aout.c
binfmt_elf.c
binfmt_elf_fdpic.c
binfmt_em86.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
binfmt_flat.c
binfmt_misc.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
binfmt_script.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
binfmt_som.c
bio.c
block_dev.c
buffer.c nobh: nobh_write_end fix 2007-10-21 08:54:05 -07:00
char_dev.c
compat.c
compat_ioctl.c
dcache.c dcache: don't expose uninitialized memory in /proc/<pid>/fd/<fd> 2007-10-22 08:13:18 -07:00
dcookies.c
direct-io.c
dnotify.c
dquot.c
drop_caches.c
eventfd.c
eventpoll.c
exec.c
fcntl.c
fifo.c
file.c
file_table.c
filesystems.c
fs-writeback.c Use helpers to obtain task pid in printks 2007-10-19 11:53:43 -07:00
generic_acl.c
inode.c
inotify.c [PATCH] new helper - inotify_evict_watch() 2007-10-21 02:37:38 -04:00
inotify_user.c
internal.h
ioctl.c
ioprio.c
Kconfig
Kconfig.binfmt
libfs.c exportfs: add new methods 2007-10-22 08:13:19 -07:00
locks.c
Makefile
mbcache.c fs: Fix to correct the mbcache entries counter 2007-10-25 15:18:29 -07:00
mpage.c
namei.c [PATCH] pass dentry to audit_inode()/audit_inode_child() 2007-10-21 02:37:18 -04:00
namespace.c [PATCH] new helpers - collect_mounts() and release_collected_mounts() 2007-10-21 02:37:25 -04:00
nfsctl.c
no-block.c
open.c [PATCH] pass dentry to audit_inode()/audit_inode_child() 2007-10-21 02:37:18 -04:00
pipe.c
pnode.c
pnode.h [PATCH] new helpers - collect_mounts() and release_collected_mounts() 2007-10-21 02:37:25 -04:00
posix_acl.c
quota.c
quota_v1.c
quota_v2.c
read_write.c
read_write.h
readdir.c
select.c
seq_file.c
signalfd.c
splice.c
stack.c
stat.c
super.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
sync.c
timerfd.c
utimes.c
xattr.c [PATCH] pass dentry to audit_inode()/audit_inode_child() 2007-10-21 02:37:18 -04:00
xattr_acl.c