[S390] cio: avoid memory leak on error in css_alloc_subchannel().
authorCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 10 Aug 2007 12:32:26 +0000 (14:32 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 10 Aug 2007 12:32:36 +0000 (14:32 +0200)
commit5693ce6f9b9f08942e55e3825db014f8b1205772
tree6aa4dbe6eb1720f1427af96eb33a98de4c721cf1
parentac07860264bd2b18834d3fa3be47032115524cea
[S390] cio: avoid memory leak on error in css_alloc_subchannel().

sch->lock has been allocated in cio_validate_subchannel(), it must be
freed if cio_modify() fails.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/css.c