From: Sebastian Ott Date: Fri, 11 Sep 2009 08:28:26 +0000 (+0200) Subject: [S390] cio: move final put_device to ccw_device_unregister X-Git-Tag: v2.6.32-rc1~734^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b554a14f4bdf754ba9d2f64c2b6edf8dafe93b9;p=pandora-kernel.git [S390] cio: move final put_device to ccw_device_unregister We use a test_and_clear_bit to prevent a device from being unregistered twice. Unfortunately in this cases the "final" put_device (from device_initialize) was issued more than once, resulting in an use after free error. Fix this by moving this put_device to ccw_device_unregister. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed