staging: vme: tsi148: use list_for_each_safe when deleting resources in .remove
authorEmilio G. Cota <cota@braap.org>
Fri, 12 Nov 2010 11:14:34 +0000 (11:14 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Nov 2010 19:40:14 +0000 (11:40 -0800)
commitb558ba2f356c28269de179c4f7f6f179a4fa6a1d
tree782164bd5af77303f4cdef4e7c8f5aaf9a2daca9
parentdb6d8fc5596ef866e64e9a7eef96bacdc6e51e11
staging: vme: tsi148: use list_for_each_safe when deleting resources in .remove

This fixes an oops when removing the module.

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>
drivers/staging/vme/bridges/vme_tsi148.c