s390/cio: check the subchannel validity for dev_busid
authorVineeth Vijayan <vneethv@linux.ibm.com>
Fri, 5 Nov 2021 15:44:51 +0000 (16:44 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 8 Nov 2021 13:17:49 +0000 (14:17 +0100)
commita4751f157c194431fae9e9c493f456df8272b871
treecd75c67830300d722dd8edb8223a23edac7a6e82
parent9d48c7afedf91a02d03295837ec76b2fb5e7d3fe
s390/cio: check the subchannel validity for dev_busid

Check the validity of subchanel before reading other fields in
the schib.

Fixes: d3683c055212 ("s390/cio: add dev_busid sysfs entry for each subchannel")
CC: <stable@vger.kernel.org>
Reported-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Link: https://lore.kernel.org/r/20211105154451.847288-1-vneethv@linux.ibm.com
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/css.c