From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B9F3D45A9F for ; Wed, 2 Oct 2024 20:39:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADBF64065C; Wed, 2 Oct 2024 20:39:35 +0200 (CEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by mails.dpdk.org (Postfix) with ESMTP id 38141402AF for ; Wed, 2 Oct 2024 20:39:31 +0200 (CEST) Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-71dae4fc4c9so182595b3a.0 for ; Wed, 02 Oct 2024 11:39:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1727894370; x=1728499170; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HCt/WQI5sO7axY3DHorG5Ls6zAF7xLHZak77QAgDqKo=; b=tBBPL+/z7e9VeBIKqsGN9bs04l3a+NCgquqe1XtteMSwsS83SJbPA40L9yehKj+fVN iDr/8GQ1uYH/s3nDiWdUIGu3azvjzNr9+BOfLsBxIPPxhDRUtqDbpNrw2FdIYr3BGCff mC+VEJqgan0EJsp+KHerEYiRF/w3G5R4T3m2MekShlFmFWRvQLGVSDF2F85JtgHFT0d6 T3PvMrUxLniJgvc2OdPlse7rxct/w8cfATjeqbL45oDTVH39uK2gzB2C3icy6dYXe9Vu 0e5GJyeR5fJ2WYYz8+KjEYO7uxfMtNS4D+d0wPPeVl9xIj+2Af2Lk1Re0rSBRPf4YlaT VenA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727894370; x=1728499170; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HCt/WQI5sO7axY3DHorG5Ls6zAF7xLHZak77QAgDqKo=; b=Z8LbMUzfqWaSz8CyqNKmIQnCnAnaix8Qkn9RG7ZsSUVuF1yOYSya7Y2g08VJNU2GTq CwcAciVQEJqSkUwBFF5kO2ItcY50zZJa4mxvCQQXTHiZ8Q+VEqvPRag01SSd3PDYjg8R hm0lAFjKi1rnDkgkzmozE2kLLLjtLZWoGpG6ZawmjYixEm5eVqtmG05dhuC2gkPZcgrc IlzaaIN1AXAOj41e7BMlZc7hrtBjoI10bXhAYtK3aa/b//Kf3qA6ukVjr6W38c6jJ+jY dD9PzDzbjlvxDMBLUPG7b2VsHW7sFVUcWyPD4bRqpayndLl5Oq7x9+bonJZ9FITSmbxL m90Q== X-Forwarded-Encrypted: i=1; AJvYcCUyf2+RYnGq4Qk9CdqpytuFrCVIhQ3Hu++RFEvk9d9PKNjpR1SApZ1eYKJaS09HltkeeIDpdZ4=@dpdk.org X-Gm-Message-State: AOJu0YxblzDuJWxVPymzK+b4igMq/XoX5MehAHknGB6leWgQkH/KRouJ pebesH1/snwyphwsrtGKGw+tkQKWgDTEk8HInpVzDgN+51slrexDzvIVQs6IUXs= X-Google-Smtp-Source: AGHT+IHl/64RPH1RrAl43ldNczAfTbwCJvvTP+ZHxDcc2qfzAjyjBnjkeBaSUpVn/s25E395vfB0cQ== X-Received: by 2002:a05:6a00:181c:b0:70e:91ca:32ab with SMTP id d2e1a72fcca58-71dc5c425aemr6703718b3a.6.1727894370313; Wed, 02 Oct 2024 11:39:30 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2649b0bdsm10104362b3a.34.2024.10.02.11.39.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Oct 2024 11:39:30 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , kevin.laatz@intel.com, stable@dpdk.org, Bruce Richardson , Conor Walsh Subject: [PATCH v7 03/16] dma/ixd: fix incorrect free function in cleanup Date: Wed, 2 Oct 2024 11:37:41 -0700 Message-ID: <20241002183918.161656-4-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002183918.161656-1-stephen@networkplumber.org> References: <20240927204742.546164-1-stephen@networkplumber.org> <20241002183918.161656-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org The data structure is allocated with rte_malloc and incorrectly freed in cleanup logic using free. Bugzilla ID: 1549 Fixes: 9449330a8458 ("dma/idxd: create dmadev instances on PCI probe") Cc: kevin.laatz@intel.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger Reviewed-by: Bruce Richardson --- drivers/dma/idxd/idxd_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/idxd/idxd_pci.c b/drivers/dma/idxd/idxd_pci.c index 81637d9420..f89e2b41ff 100644 --- a/drivers/dma/idxd/idxd_pci.c +++ b/drivers/dma/idxd/idxd_pci.c @@ -301,7 +301,7 @@ init_pci_device(struct rte_pci_device *dev, struct idxd_dmadev *idxd, return nb_wqs; err: - free(pci); + rte_free(pci); return err_code; } -- 2.45.2