From: Matt Domsch Date: Fri, 26 Jan 2007 08:57:18 +0000 (-0800) Subject: [PATCH] Fix race in efi variable delete code X-Git-Tag: v2.6.20-rc7~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496a0fc8c5572a626de41d56d7c7ed005a2c1b48;p=pandora-kernel.git [PATCH] Fix race in efi variable delete code Fix race when deleting an EFI variable and issuing another EFI command on the same variable. The removal of the variable from the efivars_list should be done in efivar_delete and not delayed until the kobject release. Furthermore, remove the item from the list at module unload time, and use list_for_each_entry_safe() rather than list_for_each_safe() for readability. Tested on ia64. Signed-off-by: Prarit Bhargava Signed-off-by: Matt Domsch Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed