s390/cio: Fix cleanup when unsupported IDA format is used
authorEric Farman <farman@linux.ibm.com>
Fri, 9 Nov 2018 02:39:29 +0000 (03:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:31 +0000 (09:24 +0100)
commit61170596e1c0715519720947a9a3b8249a729101
tree4a87c63c68d412e5a1e49a3f0630b0139c0a4871
parenta4f21114d83ec0abc311e71f11a0e05f670a0cac
s390/cio: Fix cleanup when unsupported IDA format is used

[ Upstream commit b89e242eee8d4cd8261d8d821c62c5d1efc454d0 ]

Direct returns from within a loop are rude, but it doesn't mean it gets
to avoid releasing the memory acquired beforehand.

Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20181109023937.96105-3-farman@linux.ibm.com>
Reviewed-by: Farhan Ali <alifm@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Acked-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/cio/vfio_ccw_cp.c