Commit a87a91ca authored by Stefan Weinhuber's avatar Stefan Weinhuber Committed by Greg Kroah-Hartman

S390 dasd: fix data size for PSF/PRSSD command

commit 49fd38bd upstream

The Perform Subsystem Function/Prepare for Read Subsystem Data
command requires 12 bytes of parameter data, but the respective data
structure dasd_psf_prssd_data has a length of 16 bytes.
Current storage servers ignore the obsolete bytes, but older models
fail to execute the command and report an incorrect length error.
This causes the device initilization for these devices to fail.
To fix this problem we need to correct the dasd_psf_prssd_data
structure and shorten it to the correct length.
Reported-by: default avatarIvan Warren <ivan@vmfacility.fr>
Reviewed-by: default avatarIvan Warren <ivan@vmfacility.fr>
Tested-by: default avatarIvan Warren <ivan@vmfacility.fr>
Signed-off-by: default avatarStefan Weinhuber <wein@de.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 04df0a8e
...@@ -379,7 +379,7 @@ struct dasd_psf_prssd_data { ...@@ -379,7 +379,7 @@ struct dasd_psf_prssd_data {
unsigned char flags; unsigned char flags;
unsigned char reserved[4]; unsigned char reserved[4];
unsigned char suborder; unsigned char suborder;
unsigned char varies[9]; unsigned char varies[5];
} __attribute__ ((packed)); } __attribute__ ((packed));
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment