[S390] cio: channel path memory leak
authorMichael Ernst <mernst@de.ibm.com>
Tue, 6 Oct 2009 08:33:59 +0000 (10:33 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Tue, 6 Oct 2009 08:35:06 +0000 (10:35 +0200)
Move dev_set_name to when we know that the device will actually be
registered in order to avoid a memory leak if the allocated memory
for the channel path has to be freed.

Signed-off-by: Michael Ernst <mernst@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

No differences found