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 E5C6CA034F; Sat, 5 Feb 2022 18:29:37 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5202640E09; Sat, 5 Feb 2022 18:29:37 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 194514069D for ; Sat, 5 Feb 2022 18:29:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644082174; 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=yEyLb+E6TO5GSu5xNtdgGMnDBElcFE0yJV45bICV8Nk=; b=CGsd2r/602jkkiwN1fBoTpHcPFxtOZbOn3wBkMi4TsnZmIXU/9ZVsSHO+yF3kQb9rxcvxS iBBekZz43YFg64CEE20PYI5twwcKatrtyVT0t7oqYXXAd0gvlZI7b27A41rdfC5nc3MADW r0XFWZLgmStEXLMSC9c3pNlWwZp2p0Y= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-630-W_dvEzBmMzizkaZen6Dnfw-1; Sat, 05 Feb 2022 12:29:33 -0500 X-MC-Unique: W_dvEzBmMzizkaZen6Dnfw-1 Received: by mail-lj1-f197.google.com with SMTP id p9-20020a2ea409000000b0023ced6b0f51so2371494ljn.19 for ; Sat, 05 Feb 2022 09:29:33 -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=yEyLb+E6TO5GSu5xNtdgGMnDBElcFE0yJV45bICV8Nk=; b=qvg2Ea4asOPjkybwg7JxyVY06iC6aYDanDUlcrKSzCf9OwAheCZpLMJEz2VQdz7kB9 /0MYdTwrxdOm+9QwqNDzcbq8SioEUIgHtH770TB6HbzNLloADZPkvL0FJP7IL0AhyUv8 RDWLnrsfOzf/5OApOvrZq6qolQKaXdYh4KAKKXW/StOrfFld8dVbq5LaZn/DQA8fQxte szXQF0INf0OdaMeJhweLSwK7Pu1tuMSDFsVQ07BDvzFcDF6+8YYOGrsAwnP/PuTzn+4m B6xQ8OQJ8lKfMRrTVrLDB+AUji22WM+m90NYbXh0M4/RR/n4guW5HOOMBkA3SuTQa/0g TJ8Q== X-Gm-Message-State: AOAM530HDPFvJ7bvL5zF5KltTgYA8G5V07pyiegDRU2BzyvgBHn9q5Mt mojdhZ5QD2qKEVC2zVaAMKdek6YEG8Nj1WmqcxVKl+cC+BNraZK08+5Ly9cng+uxJafnLtT+EPA bNAEjoS0D9e2mJQUKLR4= X-Received: by 2002:a2e:5848:: with SMTP id x8mr3154816ljd.297.1644082172009; Sat, 05 Feb 2022 09:29:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+7ZewZ43TevdDcewKL2o/vCwO0jmVrFtpjq+AKuqrw5gdQ7IxX9I5mtPJrgwrSSwiBLF0kXZTxgewERALWuk= X-Received: by 2002:a2e:5848:: with SMTP id x8mr3154803ljd.297.1644082171796; Sat, 05 Feb 2022 09:29:31 -0800 (PST) MIME-Version: 1.0 References: <3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com> In-Reply-To: <3d5cb5cba8ee4ae1d1de5eba1d009eaffbb49062.1639488393.git.wangyunjian@huawei.com> From: David Marchand Date: Sat, 5 Feb 2022 18:29:20 +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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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") > Cc: stable@dpdk.org > > Signed-off-by: Yunjian Wang Reviewed-by: David Marchand -- David Marchand