s390/cio: check the subchannel validity for dev_busid
Check the validity of subchanel before reading other fields in the schib. Fixes: d3683c05 ("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.comSigned-off-by: Vasily Gorbik <gor@linux.ibm.com>
Showing
Please register or sign in to comment