s390/qdio: don't release memory in qdio_setup_irq()
authorJulian Wiedmann <[email protected]>
Wed, 2 May 2018 06:28:34 +0000 (08:28 +0200)
committerMartin Schwidefsky <[email protected]>
Tue, 15 May 2018 05:40:38 +0000 (07:40 +0200)
commit2e68adcd2fb21b7188ba449f0fab3bee2910e500
tree35c6161dd9e82d735dfcd6b9bc6f6c2c28eb77eb
parente521813468f786271a87e78e8644243bead48fad
s390/qdio: don't release memory in qdio_setup_irq()

Calling qdio_release_memory() on error is just plain wrong. It frees
the main qdio_irq struct, when following code still uses it.

Also, no other error path in qdio_establish() does this. So trust
callers to clean up via qdio_free() if some step of the QDIO
initialization fails.

Fixes: 779e6e1c724d ("[S390] qdio: new qdio driver.")
Cc: <[email protected]> #v2.6.27+
Signed-off-by: Julian Wiedmann <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
drivers/s390/cio/qdio_setup.c