linux/drivers/staging/vme
Emilio G. Cota 1daa38d379 staging/vme_user: fix usage of the slave resources after they've been freed
buf_unalloc() frees the memory buffers allocated with vme_alloc_consistent.
The associated VME resource is needed in both vme_alloc_consistent and
vme_free_consistent; however the slave VME resources are being freed before
the calls to vme_free_consistent are made, which means the buffers
are never returned.

Fix this by freeing the VME resources only after the consistent buffers have
been returned.

Signed-off-by: Emilio G. Cota <cota@braap.org>
Acked-by: Martyn Welch <martyn.welch@ge.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-12-03 11:51:51 -08:00
..
boards Staging: remove unused #include <linux/version.h> 2010-05-11 11:35:36 -07:00
bridges staging: vme: ca91cx42: mark the registers' base address pointer as __iomem 2010-11-16 11:40:17 -08:00
devices staging/vme_user: fix usage of the slave resources after they've been freed 2010-12-03 11:51:51 -08:00
Kconfig Staging: vme: VMIVME-7805 board support 2010-03-03 16:43:02 -08:00
Makefile Staging: vme: VMIVME-7805 board support 2010-03-03 16:43:02 -08:00
TODO Staging: vme: Add ca91cx42 rmw support 2010-03-03 16:43:01 -08:00
vme_api.txt Staging: vme: Attribute Testing For Dma Request 2010-03-03 16:43:00 -08:00
vme_bridge.h staging: vme: mark struct vme_master_resource's base address pointer as __iomem 2010-11-16 11:40:16 -08:00
vme.c staging: vme: fix bogus clearing of the bus number in vme_free_bus_num 2010-11-16 11:40:14 -08:00
vme.h Staging: vme: Attribute Testing For Dma Request 2010-03-03 16:43:00 -08:00