diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2009-09-11 10:28:26 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-09-11 10:29:40 +0200 |
commit | 3b554a14f4bdf754ba9d2f64c2b6edf8dafe93b9 (patch) | |
tree | a01fc109cd60297d404e0e21f7457bd8e15f372b /lib/string.c | |
parent | 6ee4fec6be06f7d138860b37cba58982cc3ccb16 (diff) |
[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 <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions