From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 06CEFE5D for ; Mon, 30 Apr 2018 16:42:50 +0200 (CEST) Received: by mail-wm0-f66.google.com with SMTP id j4so13608989wme.1 for ; Mon, 30 Apr 2018 07:42:50 -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:in-reply-to:references; bh=mstr4aQcGREM0DluJecq7zK7PWxa06R/HS0+0wc+l10=; b=N9PrlBSJSCpoXCWarovxvUQGU0tlGY3PhZAVpDZqIl04mGmZjMhuUtZVszy6A+3Yqk ST7IIHvAfA9dD/GExFImSjRG0jcGoCoL5E9nCmJ+eA6psuBvmWOi6ospDMVq/kFdyn6S 1olOZsYtPkaYpWvilZDvJ6JXJ6sZlD/BzIEBNkl/UHo3aV/K0ig247HIKDm0Em8SDmqF MZoKcI7DdZFwbRdiC7a5xs+y8s6wE9hnxBOZIaN9zh0VikfGYadCNXs+DgU2rDAGhDYT eltCA1CJ97jG5Vk99Mrd8W0UbLXftiZto2zAZu2QJTo1tFHqdGRPSlpo3NrxtqFuVP/o SxoQ== 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:in-reply-to :references; bh=mstr4aQcGREM0DluJecq7zK7PWxa06R/HS0+0wc+l10=; b=gMgbmVsmwE1ykYaUJl2OesobVKN298Ajxh8lMT6f3gI9yKiLUYD9G4CZKI1x3LS8ba SkTL0a/Q0p94JYwRfirQbcs9f/nYAVmjlIlDXRSO8BXyrQ7DEhBmz2k5k9jjeYKQqvD7 tftmsU/XywUkRu4fLGU+cBq4jSaQRPrBgewap+PS0ALSqZhmAgmyQ8ALT42XssMgnxMq z9B5qwxk90PG0GbbihPv2BfCtdijE11It6sf9jBBfNEdk8w1auvnFfU5k3zMl2yRNzM2 N9qgaor/AW1DE/sKhJUB3QH1FCoBAskh7+DUPzN5mt/Qrj21QphnIDrID9lbj+zu+B3w dH3g== X-Gm-Message-State: ALQs6tAZXEm40hB5kbjP7UkemMwJr6TbvzQLtRhxyX930BhiJfTL+q7z sJcm+dVgKOo/gpmbNB0Q+3yorBKQmW8= X-Google-Smtp-Source: AB8JxZoPCGKZDxrNHxEo0Fk5A7xKWSeyxorubxvCex0/BS26f5ZAhALE/5gLIlIPM8K3rOQU+oLdAQ== X-Received: by 10.28.136.4 with SMTP id k4mr8022107wmd.133.1525099370626; Mon, 30 Apr 2018 07:42:50 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id a129sm9706964wme.3.2018.04.30.07.42.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 07:42:49 -0700 (PDT) From: luca.boccassi@gmail.com To: Hemant Agrawal Cc: Shreyansh Jain , dpdk stable Date: Mon, 30 Apr 2018 15:40:31 +0100 Message-Id: <20180430144223.18657-16-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180430144223.18657-1-luca.boccassi@gmail.com> References: <20180430140606.4615-80-luca.boccassi@gmail.com> <20180430144223.18657-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'bus/dpaa: fix resource leak' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 14:42:51 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/02/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 05a71f386e18b0dcc7b802dbf79f1a8d28927a11 Mon Sep 17 00:00:00 2001 From: Hemant Agrawal Date: Mon, 9 Apr 2018 15:52:48 +0530 Subject: [PATCH] bus/dpaa: fix resource leak [ upstream commit 35bb5234defc3d1629e1f24db0ade342b0157e70 ] Coverity issue: 268337 Fixes: 1459585888b5 ("bus/dpaa: fix memory allocation during scan") Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/bus/dpaa/base/fman/fman.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index bda62e011..c19b2fba9 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -442,6 +442,7 @@ fman_if_init(const struct device_node *dpa_node) if (!pool_node) { FMAN_ERR(-ENXIO, "%s: bad fsl,bman-buffer-pools\n", dname); + free(bpool); goto err; } pname = pool_node->full_name; @@ -449,6 +450,7 @@ fman_if_init(const struct device_node *dpa_node) prop = of_get_property(pool_node, "fsl,bpid", &proplen); if (!prop) { FMAN_ERR(-EINVAL, "%s: no fsl,bpid\n", pname); + free(bpool); goto err; } assert(proplen == sizeof(*prop)); -- 2.14.2