linux/drivers/base
James Bottomley 2f3edc6936 [SCSI] transport_class: BUG if we can't release the attribute container
Every current transport class calls transport_container_release but
ignores the return value.  This is catastrophic if it returns an error
because the containers are part of a global list and the next action of
almost every transport class is to free the memory used by the
container.

Fix this by making transport_container_release a void, but making it BUG
if attribute_container_release returns an error ... this catches the
root cause of a system panic much earlier.  If we don't do this, we get
an eventual BUG when the attribute container list notices the corruption
caused by the freed memory it's still referencing.

Also made attribute_container_release __must_check as a reminder.

Cc: Greg KH <greg@kroah.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-04-07 12:19:10 -05:00
..
power PM: fix new mutex-locking bug in the PM core 2008-03-04 14:47:05 -08:00
Kconfig
Makefile
attribute_container.c
base.h
bus.c
class.c
core.c driver core: debug for bad dev_attr_show() return value. 2008-03-24 22:33:49 -07:00
cpu.c
dd.c
devres.c
dma-mapping.c
driver.c driver core: fix small mem leak in driver_add_kobj() 2008-03-28 14:45:23 -07:00
firmware.c
firmware_class.c
hypervisor.c
init.c
isa.c
map.c
memory.c
module.c
node.c
platform.c drivers: fix dma_get_required_mask 2008-03-10 16:33:33 -07:00
sys.c sysdev: fix problem with sysdev_class being re-registered 2008-03-10 16:33:32 -07:00
topology.c
transport_class.c [SCSI] transport_class: BUG if we can't release the attribute container 2008-04-07 12:19:10 -05:00