Skip to content

Commit

Permalink
[PATCH] s390: ccw device reconnect oops.
Browse files Browse the repository at this point in the history
Search for a disconnect ccw_device on the ccw bus rather than on the css
bus (was a typo in patch I did for the klist conversion).  A cast to an
embedding ccw_device from an embedded device in a struct subchannel will
lead us to oopses.

Signed-off-by: Cornelia Huck <cohuck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Cornelia Huck authored and Linus Torvalds committed Oct 11, 2005
1 parent 907a426 commit e5945b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ get_disc_ccwdev_by_devno(unsigned int devno, struct ccw_device *sibling)
.sibling = sibling,
};

dev = bus_find_device(&css_bus_type, NULL, &data, match_devno);
dev = bus_find_device(&ccw_bus_type, NULL, &data, match_devno);

return dev ? to_ccwdev(dev) : NULL;
}
Expand Down

0 comments on commit e5945b4

Please sign in to comment.