[S390] cio: fix double free after failed device initialization
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sun, 23 Aug 2009 16:09:04 +0000 (18:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 23 Aug 2009 16:10:00 +0000 (18:10 +0200)
commit06739a8ad321b1e5140b318c648b0cc4bf8c6daa
treefdbee8b3b657fbd206a223d06d930931e8efb4c8
parent3edf2fb9d80a46d6c32ba12547a42419845b4b76
[S390] cio: fix double free after failed device initialization

If io_subchannel_initialize_dev fails it will release the only
reference to the ccw device therefore the caller should not
kfree this device since this is done in the release function.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c