Revision c80f5b31f3c55a197f5323b93d1e3553429a427e authored by Julia Lawall on 15 March 2012, 08:32:05 UTC, committed by Len Brown on 30 March 2012, 07:30:34 UTC
The function acpi_processor_add is stored in the ops.add field of a
acpi_driver structure.  This function is then called in
acpi_bus_driver_init.  On failure, this function clears the field
device->driver_data, but does not free its contents.  Thus the free has to
be done by the add function.  In acpi_processor_add, the corresponding
value is pr.  This value is currently freed on failure before storing it in
device->driver_data, but not after.  This free is added in the error
handling code at the end of the function.  The per_cpu variable
processors is also cleared so that it does not refer to a dangling pointer.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
1 parent c6436f5
History
File Mode Size
Kconfig -rw-r--r-- 1.6 KB
Makefile -rw-r--r-- 437 bytes
acl.c -rw-r--r-- 4.0 KB
endian24.h -rw-r--r-- 1.5 KB
file.c -rw-r--r-- 4.4 KB
inode.c -rw-r--r-- 9.9 KB
ioctl.c -rw-r--r-- 3.2 KB
jfs_acl.h -rw-r--r-- 1.2 KB
jfs_btree.h -rw-r--r-- 4.0 KB
jfs_debug.c -rw-r--r-- 2.8 KB
jfs_debug.h -rw-r--r-- 3.4 KB
jfs_dinode.h -rw-r--r-- 5.6 KB
jfs_dmap.c -rw-r--r-- 108.9 KB
jfs_dmap.h -rw-r--r-- 11.2 KB
jfs_dtree.c -rw-r--r-- 100.2 KB
jfs_dtree.h -rw-r--r-- 6.6 KB
jfs_extent.c -rw-r--r-- 17.3 KB
jfs_extent.h -rw-r--r-- 1.3 KB
jfs_filsys.h -rw-r--r-- 8.8 KB
jfs_imap.c -rw-r--r-- 84.3 KB
jfs_imap.h -rw-r--r-- 6.4 KB
jfs_incore.h -rw-r--r-- 7.3 KB
jfs_inode.c -rw-r--r-- 4.0 KB
jfs_inode.h -rw-r--r-- 2.5 KB
jfs_lock.h -rw-r--r-- 1.5 KB
jfs_logmgr.c -rw-r--r-- 59.3 KB
jfs_logmgr.h -rw-r--r-- 14.7 KB
jfs_metapage.c -rw-r--r-- 19.6 KB
jfs_metapage.h -rw-r--r-- 4.2 KB
jfs_mount.c -rw-r--r-- 12.7 KB
jfs_superblock.h -rw-r--r-- 4.1 KB
jfs_txnmgr.c -rw-r--r-- 75.5 KB
jfs_txnmgr.h -rw-r--r-- 8.2 KB
jfs_types.h -rw-r--r-- 4.0 KB
jfs_umount.c -rw-r--r-- 4.0 KB
jfs_unicode.c -rw-r--r-- 3.3 KB
jfs_unicode.h -rw-r--r-- 3.7 KB
jfs_uniupr.c -rw-r--r-- 7.5 KB
jfs_xattr.h -rw-r--r-- 2.6 KB
jfs_xtree.c -rw-r--r-- 92.1 KB
jfs_xtree.h -rw-r--r-- 4.0 KB
namei.c -rw-r--r-- 37.4 KB
resize.c -rw-r--r-- 14.7 KB
super.c -rw-r--r-- 21.0 KB
symlink.c -rw-r--r-- 1.6 KB
xattr.c -rw-r--r-- 27.3 KB

back to top