]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1a31138a8d771cd99d60d4ce361cb05c534978a
treecd75c67830300d722dd8edb8223a23edac7a6e82
parent2cd3762692700ed400f9a145f8eebdfb236531fa
s390/cio: check the subchannel validity for dev_busid

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

Fixes: 62365ed60b0a ("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