From patchwork Thu Apr 6 01:43:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirsad Todorovac X-Patchwork-Id: 80017 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp710098vqo; Wed, 5 Apr 2023 18:53:30 -0700 (PDT) X-Google-Smtp-Source: AKy350adcueoTouHgshWVytp4sEzKS8YBhUi695zx1/iHQxDloEp23MSzxTh6xP50Qln8LiQXTbN X-Received: by 2002:a17:906:1c19:b0:93b:a0c8:1cec with SMTP id k25-20020a1709061c1900b0093ba0c81cecmr4692267ejg.32.1680746010476; Wed, 05 Apr 2023 18:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680746010; cv=none; d=google.com; s=arc-20160816; b=zY8Ytu6kekk9rhnPCXe+yQxzNTFihYBvo8LpVjGaEXFWw/0WP5kMZALGwmB44+lKf6 GxlSfcl0baWJH2hqzINmMQx1e8Y2v9O7DyjSX04iOtKl5aYndyBEnWwYg/uc9JioN99x Sp6JzmmAc+qDVJWLoT+DuJpniyKu7/CoDTJKKoEHNtFoQiHELmcfeT4koY7ZwlbBm6Nj b8w9R/6RjKnIftoX/iwwvN2KrzPtDKrnInXjazhwx+5hfNqzZZDgIcU9Kv5itExm2vKx gyXSROsl1TIT2j1bZ94XQQp0kcDzSwggooR+v00y1DI6dWMMJVlEuwm1zy0JoBax27/i VoCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-signature; bh=y0ORS9bcWQd1eTexi8iS0kkFQPn00n6kjm7AWCaGo3E=; b=BzFFbmBuztUmBtODktf3+iI/u13v5n+GMt1OPFQNrmFCOLd8KdcciC8b+ssDek4wm+ CauIxzE9R2aASzNwSW9VIEcZ2wEmpM+L2uzNgpR15qy9V6+Xp/+ZShiP0awoQi3Hltbc s/FiFVpFE3aJsHMvU/x0TgJDdAPc9NNkQWxvxSFzMHwngKTlqE1tU/Ieqyg/M6oiEaLn tVMVm25p9C3FmrNd1PKZTXOqYbTskCiSZRsPr9txiJjGIm+RZN453lH7M5e4I/l3F/hn h9ETZqhFPEZet7Rdx057YBr2xrBNKIvSfCp0jVz5CvcvimXsyx8UJzGUtTrY4ffYJONy nx/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=MyndSgiC; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Li7H4Lzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a20-20020a1709063e9400b00947a3ecc3b7si184598ejj.624.2023.04.05.18.53.06; Wed, 05 Apr 2023 18:53:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=MyndSgiC; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Li7H4Lzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234787AbjDFBqp (ORCPT + 99 others); Wed, 5 Apr 2023 21:46:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234774AbjDFBqn (ORCPT ); Wed, 5 Apr 2023 21:46:43 -0400 Received: from domac.alu.hr (domac.alu.unizg.hr [IPv6:2001:b68:2:2800::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0291C729B for ; Wed, 5 Apr 2023 18:46:41 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 2E41B604ED; Thu, 6 Apr 2023 03:46:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1680745598; bh=7gR9b1/jHxuRqJoe09x+E/k2KTBJTWA8CRBAC0RautE=; h=From:To:Cc:Subject:Date:From; b=MyndSgiCAD/vVHTTf0/fc+RGYboQSxt7IORW0hy1Q2oVMsIT1+6vJGuUx/TOzXUzR +SwpUiMcng8qjQ5niW66D/o96zRwDQa2B5ftMgrQ502eAfUDYUPlSuiDhHBNuDvF7y 5r7y6/p5EfjAewG83YBBpDbux/RmGFQzM1Q59ky0suq2o/Gi8AejkDmcNjX057nlaA c5zKLrWKzJMsz5UUGKSaiKuRCobxFijC0mTZZfOvgaAaSmj8ZUPXk8beDPVjvK6hvj kFluan4EngQuFvzctpaPyzL+DV/JXQLNXWw9HvJ1EW4W8dw9Q3FXo450DI5soLxUmP LiZfm7xGUkyGQ== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id whKfdZ4Z2Dov; Thu, 6 Apr 2023 03:46:36 +0200 (CEST) Received: by domac.alu.hr (Postfix, from userid 1014) id 2826D604EF; Thu, 6 Apr 2023 03:46:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1680745596; bh=7gR9b1/jHxuRqJoe09x+E/k2KTBJTWA8CRBAC0RautE=; h=From:To:Cc:Subject:Date:From; b=Li7H4LzmaibgVaTZZxB/xo1NLZg8ktDcCg9FQEDHFefKydb7dMaLxf4h+SUHD9kOB Fc3puyGd7U1xAziahi/5FAv3OIqmGQi151FWIaDNssDAuapm7hQ4pU1+lzLkxG/9k4 /jCufV4j+0bOF4Z9rSxg8UCI3lU2foMCrNzgJ9avlQagdV4Qk7hkzZ8oWvdAU3OtBD nSB+cjk/NRC2abDMWgGQZF7VuGMXh0U8fuwoNrTGkV1wtxPaMhFKmD/kZeD4B/BaMP EbMZ5vZn47RypZ4EwgUnKgwgevLbPx/pctaVRZU0rBNZNzurgi7notNnjJjTMpgmKS /LgzWZtlx6kgg== From: Mirsad Goran Todorovac To: Greg Kroah-Hartman , Russ Weight , linux-kernel@vger.kernel.org Cc: Mirsad Goran Todorovac Subject: [PATCH v3 2/2] Revert "lib/firmware: fix a memory leak with multiple calls of trigger_batched_requests_store()" Date: Thu, 6 Apr 2023 03:43:24 +0200 Message-Id: <20230406014324.31171-2-mirsad.todorovac@alu.unizg.hr> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762389928832769562?= X-GMAIL-MSGID: =?utf-8?q?1762389928832769562?= This reverts commit d59ff9027c628f0e9be344b28f3576566a274f2f. --- lib/test_firmware.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/test_firmware.c b/lib/test_firmware.c index 51377b9ab6e3..454992bfdb2a 100644 --- a/lib/test_firmware.c +++ b/lib/test_firmware.c @@ -1036,11 +1036,6 @@ ssize_t trigger_batched_requests_async_store(struct device *dev, mutex_lock(&test_fw_mutex); - if (test_fw_config->reqs) { - rc = -EBUSY; - goto out; - } - test_fw_config->reqs = vzalloc(array3_size(sizeof(struct test_batched_req), test_fw_config->num_requests, 2));