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 F1CE6A00BE for ; Fri, 11 Feb 2022 08:55:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5AF240042; Fri, 11 Feb 2022 08:55:17 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 6AF8140042 for ; Fri, 11 Feb 2022 08:55:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644566116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=SvQ3jMuBavZFvDqJkQmRDlY5JxXmuwHNm+P68Unv3Pk=; b=F9xqGcYejSI8m1c7WHaRa8r0rdQhcDtcUgjdQhacvXvpzbU5lUr/9zOd1Dj9ZKuUL4N7E2 89VrWscgugo8e0FwXfGSs70Rpe63+Yeqsadx8ZYI2khjR8ubnEcrwH6OCgNn6hwFfCzCUr 4MDxEGrmAr2u18IWi5CabEHPfO6Atos= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-53-pCSsmXC_MICa7UMQYONTwQ-1; Fri, 11 Feb 2022 02:55:15 -0500 X-MC-Unique: pCSsmXC_MICa7UMQYONTwQ-1 Received: by mail-lj1-f200.google.com with SMTP id m13-20020a2e97cd000000b0023e09d49ce4so3777421ljj.6 for ; Thu, 10 Feb 2022 23:55:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SvQ3jMuBavZFvDqJkQmRDlY5JxXmuwHNm+P68Unv3Pk=; b=LHkv3htld7G9QcHGn5leCueYchRF/yKnfQnuBA7las2dpEYToMg4627bESVGT/GUbe NiSSg2pJJWJJdwQz9/TL8mWlnV0a+LzcI0fMaZAiVpaJydWecdssompzVP6ePaayPXAH 7itPecGPv/2FmOJ52gPY/Mz9db1xdIdlan/LIQy0ueVJxYb1UiFm2Trg9Jj5OThlhIk4 4E7p/k+9C/GZFyFPMxOcilzNpdvm/NgK6+fl2WbcYQzc1omJG1qb1fT5SujiBYaFlu24 e1ZEjPq87FCvXwuKeA3KMLjhhab7gkfiJA53Uh4ApxlF3BbfN8zWXAmc6g9Jaw5tHRqE qSlw== X-Gm-Message-State: AOAM532ABaeRom96CQY9wzQNXmXx+U/9wRqCq7qkCVAQDDXtjuAAfEyk Bbi3YHuBijFm+bvGCH5GPPx4TQT23jXuXuqLI+08Qhzdh25q6IYwme90P+o//OvTgADcCXuHK0Y zPKrTWGsDJXqEN0dCvkHSIzo= X-Received: by 2002:a05:6512:4014:: with SMTP id br20mr367804lfb.217.1644566113272; Thu, 10 Feb 2022 23:55:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJydHOLUQly5z5/n3J6Zyo44oRe5Cb1kw7CHFA1QovL6BrTI5b/J0cJpqZsCYFQMl9T+XS4+GjrpKDngclb77G8= X-Received: by 2002:a05:6512:4014:: with SMTP id br20mr367781lfb.217.1644566112923; Thu, 10 Feb 2022 23:55:12 -0800 (PST) MIME-Version: 1.0 References: <3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com> In-Reply-To: From: David Marchand Date: Fri, 11 Feb 2022 08:55:01 +0100 Message-ID: Subject: Re: [dpdk-dev] [PATCH 1/1] mem: check allocation in dynamic hugepage init To: Yunjian Wang Cc: dev , "Burakov, Anatoly" , dingxiaoxiong@huawei.com, xudingke , dpdk stable , Dmitry Kozlyuk Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" 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 On Sat, Feb 5, 2022 at 6:29 PM David Marchand wrote: > > On Tue, Dec 14, 2021 at 2:30 PM Yunjian Wang wrote: > > > > The function malloc() could return NULL, the return value > > need to be checked. > > > > Fixes: 694161b7e065 ("mem: extract common dynamic memory allocation") That's actually introduced with: Fixes: 6f63858e55e6 ("mem: prevent preallocated pages from being freed") > > Cc: stable@dpdk.org > > > > Signed-off-by: Yunjian Wang > Reviewed-by: David Marchand Applied, thanks. -- David Marchand