From patchwork Fri Oct 19 10:50:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Qiang X-Patchwork-Id: 10648979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 169D43B73 for ; Fri, 19 Oct 2018 10:53:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05290205F6 for ; Fri, 19 Oct 2018 10:53:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E989F2465D; Fri, 19 Oct 2018 10:53:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 969E826256 for ; Fri, 19 Oct 2018 10:53:34 +0000 (UTC) Received: from localhost ([::1]:48534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDSPN-0008RI-W1 for patchwork-qemu-devel@patchwork.kernel.org; Fri, 19 Oct 2018 06:53:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57151) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDSMq-0006GF-KS for qemu-devel@nongnu.org; Fri, 19 Oct 2018 06:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDSMn-0001Se-B4 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 06:50:56 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]:33139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDSMm-0001Lo-Vv for qemu-devel@nongnu.org; Fri, 19 Oct 2018 06:50:53 -0400 Received: by mail-pg1-x544.google.com with SMTP id y18-v6so15632007pge.0 for ; Fri, 19 Oct 2018 03:50:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dCZk8SJCwkvdWzfZ9k8qt5Fz0/AjMsL8fMhqMpykBJE=; b=GCKbfqMQrPZhMODDT6ZpGbQDeuKiBoER/xUoikx+b/BQtJDcH47ZfXzwVAON2cA0Fw jYJn6Y5pj1MEG1QV6SmCtwc0KNgviBxaZg0mZt/vxaCTwqcWuJ9bHCKatDiOituJwjw+ TTG4hJn61q7Vs2+9LGoVOlsJLyjXEFQoX2i9kywZdUc/8Cg0D4yLCvPqB3m8QRAHF6DX MbAkIx6pr+KowxAThNnPO1A8iuiSrcDJ3rAzkGxhAZJQV0OUpv9UJCYhiKmC6uIF7Gis Is17JFkqAa7jHBrvd3MgN3v5f+sGyh8/HqSKzW/o/JgXhEaIt7j06XiouC0qvn8SqCDH JjDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=dCZk8SJCwkvdWzfZ9k8qt5Fz0/AjMsL8fMhqMpykBJE=; b=faXNgKkVd4lfmOJZmZEAun+vKHdyVOWKUnFKBIKa8EanRpezBqjMheCGsMoF8WfGMr AQBqRUs5rXjBNdABt4G3xn3gdi3ZazFAJ/XIzKFh/8DiZeBHOjvX5tMlVXa0TAy+ul0n k/rSsmx5iat9Zch2p4RnFi3BLJG3JFPj7HhK4MW5PgiZe7W4t4C/AfesXhZWJT7HkPBx 5UFhynzaWJ3p5U688YHeLGXQVyovwjvRCw2MHqB6zxGf6I16iDxD3dbXMTEXTI9kaFnQ gNDNwBxtw0O37LUYLLKHZJhRRaJtRXhtIM6+va1GDWI5fAVd8kL/PEy/jFBv5sB7z2+T 6Lyw== X-Gm-Message-State: ABuFfogmDQuVqhM0uXdpTdTBsBxeRCsGsTEi7VPhVyww+V+y0QhboQlR 7wGvnVLIJrd0zJjxjtE+5Ig= X-Google-Smtp-Source: ACcGV60mrEzPYnyKhW2LPmxHVXzE4pjQFJ4ik6xAsqtgJeefozPmmb6Hwv7itMfXeBo1l3MUftXl+g== X-Received: by 2002:a63:2e47:: with SMTP id u68-v6mr32414461pgu.294.1539946241571; Fri, 19 Oct 2018 03:50:41 -0700 (PDT) Received: from localhost.localdomain.localdomain ([103.65.40.65]) by smtp.gmail.com with ESMTPSA id t64-v6sm42884856pfb.44.2018.10.19.03.50.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Oct 2018 03:50:41 -0700 (PDT) From: Li Qiang To: kraxel@redhat.com Date: Fri, 19 Oct 2018 03:50:34 -0700 Message-Id: <1539946236-18028-1-git-send-email-liq3ea@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::544 Subject: [Qemu-devel] [PATCH 0/2] hw: ccid-card-emulated: fix some resources leak X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Li Qiang , liq3ea@163.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Li Qiang (2): hw: ccid-card-emulated: introduce clean_event_notifier hw: ccid-card-emulated: cleanup resource when realize in error path hw/usb/ccid-card-emulated.c | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-)