Sebastian Ott 878c495644 [S390] cio: fix potential overflow in chpid descriptor
The length filed in the chsc response block (if valid)
has a value of n*(sizeof(chp_desc))+8 (for the response
block header). When we memcopied from the response block
to the actual descriptor we copied 8 bytes too much.
The bug was not revealed since the descriptor is embedded
in struct channel_path.
Since we only write one descriptor at a time ignore the
length value and use sizeof(*desc).

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2010-07-19 09:22:50 +02:00
..
2009-03-26 15:24:14 +01:00
2008-07-14 10:02:11 +02:00
2009-12-07 12:51:30 +01:00
2010-02-26 22:37:29 +01:00
2009-12-18 17:43:32 +01:00
2010-05-26 23:27:09 +02:00
2010-05-17 10:00:17 +02:00
2010-05-17 10:00:17 +02:00