]> git.baikalelectronics.ru Git - kernel.git/commit
dasd: fix sysfs cleanup in dasd_generic_remove
authorStefan Weinhuber <wein@de.ibm.com>
Mon, 4 Feb 2013 12:10:35 +0000 (13:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 14 Feb 2013 14:55:17 +0000 (15:55 +0100)
commit6b93166d0814af908c4faeaf1bfaaa0ff928fe2f
tree794991a4c64ebac62a7d27552894e317fec97e0f
parent00a870e94ec836b0d95cd7e85e7e515b75de6e0b
dasd: fix sysfs cleanup in dasd_generic_remove

When the DASD devices are detached from the driver, then the
dasd_generic_remove function is called. One of the things this
function should do is to remove the DASD specific sysfs attributes,
but this is not done in all cases. This is likely to cause an oops
when at a later point sysfs stumbles over the stale pointers. In
particular this happens when when the modules are unloaded and loaded
again.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c