s390/cio: fix measurement characteristics memleak
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 25 Jan 2016 09:30:27 +0000 (10:30 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 26 Jan 2016 11:47:23 +0000 (12:47 +0100)
commit0d9bfe9123cfde59bf5c2e375b59d2a7d5061c4c
treedabfd7b8bd41bfd5b75fd332aafb03122fa0df78
parentd8f51227f33fbb34e1e54e315175268f54e573e7
s390/cio: fix measurement characteristics memleak

Measurement characteristics are allocated during channel path
registration but not freed during deregistration. Fix this by
embedding these characteristics inside struct channel_path.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/chp.c
drivers/s390/cio/chp.h
drivers/s390/cio/chsc.c