[S390] cio: observe chpid valid flag
Check validity flag of CHPID description data before continuing with channel-path initialization. Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Родитель
e6b6e10ac1
Коммит
c9182e0f42
|
@ -339,6 +339,10 @@ int chp_new(struct chp_id chpid)
|
||||||
ret = chsc_determine_channel_path_description(chpid, &chp->desc);
|
ret = chsc_determine_channel_path_description(chpid, &chp->desc);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto out_free;
|
goto out_free;
|
||||||
|
if ((chp->desc.flags & 0x80) == 0) {
|
||||||
|
ret = -ENODEV;
|
||||||
|
goto out_free;
|
||||||
|
}
|
||||||
/* Get channel-measurement characteristics. */
|
/* Get channel-measurement characteristics. */
|
||||||
if (css_characteristics_avail && css_chsc_characteristics.scmc
|
if (css_characteristics_avail && css_chsc_characteristics.scmc
|
||||||
&& css_chsc_characteristics.secm) {
|
&& css_chsc_characteristics.secm) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче