s390/cio: derive cdev information only for IO-subchannels
authorVineeth Vijayan <vneethv@linux.ibm.com>
Fri, 17 Sep 2021 13:04:01 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:15:33 +0000 (18:15 +0100)
commitc65cc569370c3558de15e8bdd13287623fc02fd2
tree6b29fe19a80a66138ad81b03f2f412c76c10b4d2
parentc64be93f1e5183faaed6e312647ea8cecb50ed2b
s390/cio: derive cdev information only for IO-subchannels

[ Upstream commit 0c3812c347bfb0dc213556a195e79850c55702f5 ]

cdev->online for the purge function must not be checked for the
non-IO subchannel type. Make sure that we are deriving the cdev only
from sch-type SUBCHANNEL_TYPE_IO.

Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Stable-dep-of: 1b6074112742 ("s390/cio: fix out-of-bounds access on cio_ignore free")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/cio/css.c