From: Peter Oberparleiter Date: Wed, 5 Jan 2011 11:48:13 +0000 (+0100) Subject: [S390] cio: fix ccwgroup unregistration race condition X-Git-Tag: v2.6.38-rc1~461^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c03017544e3b2e60aa3c8ae451fac01595f1bf11;p=pandora-kernel.git [S390] cio: fix ccwgroup unregistration race condition A race condition exists in the ccwgroup device unregistration code which can cause a kernel panic due to a use-after-free bug. This race condition might be triggered when all ccw devices associated with a ccwgroup device are removed at the same time (e.g. because the corresponding channel path becomes no longer available). Fix this race condition by clearing the references from the associated ccw devices to the ccw group device during unregistration of the ccw group device. Signed-off-by: Peter Oberparleiter Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed