[S390] cio: Fix refcount after moving devices.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 14 Nov 2008 17:18:06 +0000 (18:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 14 Nov 2008 17:18:54 +0000 (18:18 +0100)
commit85acc407bf1c49fb40b8f461c2c7526af736d87e
tree356a407f2f621fc50cba45d0453958e7143738a1
parent50bec4ce5d36ebf96189dcc54e20c7fce4bf61bf
[S390] cio: Fix refcount after moving devices.

In ccw_device_move_to_orphanage(), a replacing ccw_device
is searched via get_{disc,orphaned}_ccwdev_by_dev_id()
which obtain a reference on the returned ccw_device.
This reference must be given up again after the device
has been moved to its new parent.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c