From patchwork Fri Sep 2 14:37:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quentin Lambert X-Patchwork-Id: 9311095 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC51160756 for ; Fri, 2 Sep 2016 14:39:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AEC32296FE for ; Fri, 2 Sep 2016 14:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A389F297C1; Fri, 2 Sep 2016 14:39:01 +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=-5.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5CF49296FE for ; Fri, 2 Sep 2016 14:39:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932129AbcIBOin (ORCPT ); Fri, 2 Sep 2016 10:38:43 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:34935 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754123AbcIBOif (ORCPT ); Fri, 2 Sep 2016 10:38:35 -0400 Received: by mail-wm0-f66.google.com with SMTP id c133so3131147wmd.2; Fri, 02 Sep 2016 07:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jwrWvsJVQcbbYk1SyhVZEv0RQc0CdT7HxwtUVbLwdVs=; b=ttxOEXAJFNSTmfZ+ZR4y/Ua2Pvt0Lb/y5ckYud9paudaFlzDUz5205Yvl2CiROFrJn 9PsFHWw23+yq+pp+Z5cE8uzGrZrSUjxSjNxMFWneetrSm3MERu+yhfWcV5E1UdoDi+At LifyXyMJhzwg13IKhdOl5RIUVH3fH1RIwdW8ZiIpDo/9+1KcdARuuRoLSdH5cw3Li3O5 ccemrH1wIxYziS50L//cGyf/eD1ti6pKKxJ4ZADyRcGsvEZHJPfGl/P9B++IaPaV39sJ 3e4nLz76GNceoDH2bOOyUfEfHZj+atSl8Nl/5XSYLbQTfH0V2+c1mfA9fcmwKbGa7QE9 UEZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=jwrWvsJVQcbbYk1SyhVZEv0RQc0CdT7HxwtUVbLwdVs=; b=iZUjZ64A58vvkVw0KQFKtN2IkHenRstlw1aCs/8SOKwvkG6RY1OhGb5OVaWSi0BE8F FDB/KGDvo/EJEw/4a1g8MUbHpIQDFj+B/FjsT1bGERgr+r8y9au3MyYU4K5jynkLLClM A7xOudwtrMqTPr8Dly8c6jWZ2GYeebbRLUyKlbH/OovilncVsSkvm3a8RBytmX4yF19r VoOdmctzMZsS0JmyAoyL9unlI08j4s/yrXBIQtMu1cdZYQMjLZw7Lzao+oS3N55uSuIZ bLnSmbrJKn543yEmNsYPqFn2F5gt0xkB/pCeuScDAiBzVjlQvG5jBhs5P0chLatsVcM4 +0dQ== X-Gm-Message-State: AE9vXwMpo4lM9lhpI0YDf9hJ0m9NThqRlitnFAsCXUGlqjqO6Nf5RJrt3sXxyAeAzE9pYg== X-Received: by 10.28.72.68 with SMTP id v65mr1959895wma.25.1472827114145; Fri, 02 Sep 2016 07:38:34 -0700 (PDT) Received: from sloth.lip6.fr (hp-quentin.rsr.lip6.fr. [132.227.76.76]) by smtp.gmail.com with ESMTPSA id qe2sm10783913wjc.28.2016.09.02.07.38.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Sep 2016 07:38:33 -0700 (PDT) From: Quentin Lambert To: Giovanni Cabiddu , Salvatore Benedetto , Herbert Xu , "David S. Miller" , qat-linux@intel.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, Quentin Lambert Subject: [PATCH 2/2] crypto: qat - fix resource release omissions Date: Fri, 2 Sep 2016 16:37:59 +0200 Message-Id: <20160902143759.31125-3-lambert.quentin@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160902143759.31125-1-lambert.quentin@gmail.com> References: <20160902143759.31125-1-lambert.quentin@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This issue was found with Hector. Signed-off-by: Quentin Lambert --- drivers/crypto/qat/qat_common/qat_uclo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/drivers/crypto/qat/qat_common/qat_uclo.c +++ b/drivers/crypto/qat/qat_common/qat_uclo.c @@ -981,7 +981,8 @@ static int qat_uclo_parse_uof_obj(struct (PID_MINOR_REV & handle->hal_handle->revision_id); if (qat_uclo_check_uof_compat(obj_handle)) { pr_err("QAT: UOF incompatible\n"); - return -EINVAL; + ret = -EINVAL; + goto out_err; } obj_handle->ustore_phy_size = ICP_QAT_UCLO_MAX_USTORE; if (!obj_handle->obj_hdr->file_buff ||