aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2008-12-25 07:39:05 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2008-12-25 07:39:07 -0500
commit97166f52fc84c0bc49c7dbba2a26720110acb458 (patch)
tree423e66c022de260ae6a5f664969783e43336a236 /drivers/s390
parentc619d4223eaa063dd15ce44235b04487235f8cb7 (diff)
[S390] cio: Put referernce on correct device after moving.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/cio/device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index fc0c0abd127..647cbaca298 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -875,14 +875,14 @@ void ccw_device_move_to_orphanage(struct work_struct *work)
875 if (replacing_cdev) { 875 if (replacing_cdev) {
876 sch_attach_disconnected_device(sch, replacing_cdev); 876 sch_attach_disconnected_device(sch, replacing_cdev);
877 /* Release reference from get_disc_ccwdev_by_dev_id() */ 877 /* Release reference from get_disc_ccwdev_by_dev_id() */
878 put_device(&cdev->dev); 878 put_device(&replacing_cdev->dev);
879 return; 879 return;
880 } 880 }
881 replacing_cdev = get_orphaned_ccwdev_by_dev_id(css, &dev_id); 881 replacing_cdev = get_orphaned_ccwdev_by_dev_id(css, &dev_id);
882 if (replacing_cdev) { 882 if (replacing_cdev) {
883 sch_attach_orphaned_device(sch, replacing_cdev); 883 sch_attach_orphaned_device(sch, replacing_cdev);
884 /* Release reference from get_orphaned_ccwdev_by_dev_id() */ 884 /* Release reference from get_orphaned_ccwdev_by_dev_id() */
885 put_device(&cdev->dev); 885 put_device(&replacing_cdev->dev);
886 return; 886 return;
887 } 887 }
888 sch_create_and_recog_new_device(sch); 888 sch_create_and_recog_new_device(sch);