提交 49fd38bd 编写于 作者: S Stefan Weinhuber 提交者: Martin Schwidefsky

[S390] dasd: fix data size for PSF/PRSSD command

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: NIvan Warren <ivan@vmfacility.fr>
Reviewed-by: NIvan Warren <ivan@vmfacility.fr>
Tested-by: NIvan Warren <ivan@vmfacility.fr>
CC: stable <stable@kernel.org>
Signed-off-by: NStefan Weinhuber <wein@de.ibm.com>
上级 152382af
......@@ -308,7 +308,7 @@ struct dasd_psf_prssd_data {
unsigned char flags;
unsigned char reserved[4];
unsigned char suborder;
unsigned char varies[9];
unsigned char varies[5];
} __attribute__ ((packed));
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册