diff options
| author | Igor Mammedov | 2017-10-17 15:41:19 +0200 |
|---|---|---|
| committer | Cornelia Huck | 2017-10-20 13:32:10 +0200 |
| commit | ac7e4cbbabae5a8e0d3948ddebf33351e61497c3 (patch) | |
| tree | a2c218b5a0c331dbf44fb374822bc48aaeb45c50 /linux-headers/linux | |
| parent | s390x/event-facility: variable-length event masks (diff) | |
| download | qemu-ac7e4cbbabae5a8e0d3948ddebf33351e61497c3.tar.gz qemu-ac7e4cbbabae5a8e0d3948ddebf33351e61497c3.tar.xz qemu-ac7e4cbbabae5a8e0d3948ddebf33351e61497c3.zip | |
s390x: fix cpu object referrence leak in s390x_new_cpu()
object_new() returns cpu with refcnt == 1 and after realize
refcnt == 2*. s390x_new_cpu() as an owner of the first refcnt
should have released it on exit in both cases (on error and
success) to avoid it leaking. Do so for both cases.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1508247680-98800-2-git-send-email-imammedo@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'linux-headers/linux')
0 files changed, 0 insertions, 0 deletions
