Commit 2f7484fd authored by Vineeth Vijayan's avatar Vineeth Vijayan Committed by Heiko Carstens
Browse files

s390/cio: remove invalid condition on IO_SCH_UNREG

The condition to check the cdev pointer validity on
css_sch_device_unregister() is a leftover from the 'commit 8cc0dcfd
("s390/cio: remove pm support from ccw bus driver")'. This could lead to a
situation, where detaching the device is not happening completely. Remove
this invalid condition in the IO_SCH_UNREG case.

Link: https://lore.kernel.org/r/20210423100843.2230969-1-vneethv@linux.ibm.com


Fixes: 8cc0dcfd ("s390/cio: remove pm support from ccw bus driver")
Reported-by: default avatarChristian Ehrhardt <christian.ehrhardt@canonical.com>
Suggested-by: default avatarChristian Ehrhardt <christian.ehrhardt@canonical.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarVineeth Vijayan <vneethv@linux.ibm.com>
Tested-by: default avatarJulian Wiedmann <jwi@linux.ibm.com>
Reviewed-by: default avatarPeter Oberparleiter <oberpar@linux.ibm.com>
Tested-by: default avatarChristian Ehrhardt <christian.ehrhardt@canonical.com>
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
parent b0583ab4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1532,7 +1532,6 @@ static int io_subchannel_sch_event(struct subchannel *sch, int process)
	switch (action) {
	case IO_SCH_ORPH_UNREG:
	case IO_SCH_UNREG:
		if (!cdev)
		css_sch_device_unregister(sch);
		break;
	case IO_SCH_ORPH_ATTACH: