From: Rudolf Marek <r.marek at assembler.cz>
To: devel@acpica.org
Subject: Re: [Devel] AcpiOsAllocate with zero argument
Date: Thu, 28 Jul 2016 10:06:36 +0200 [thread overview]
Message-ID: <5799BD0C.6060706@assembler.cz> (raw)
In-Reply-To: 1AE640813FDE7649BE1B193DEA596E883BC07BF4@SHSMSX101.ccr.corp.intel.com
[-- Attachment #1: Type: text/plain, Size: 560 bytes --]
Hi Lv,
Thanks for the quick response. I checked the Linux kmalloc() and also UEFI
AllocatePool() and they accept the zero size. No NULL is returned.
Therefore I would like to ask if it can be documented in the Programming Manual
that zero size should be OK and
non-NULL value should be returned. Otherwise, it may happen that if
implementation of AcpiOsAllocate() returns NULL and maybe there is some check
in the ACPICA code which will complain and break things.
As for the free() you mean that NULL should be ignored?
Thanks
Rudolf
next reply other threads:[~2016-07-28 8:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 8:06 Rudolf Marek [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-07-28 5:29 [Devel] AcpiOsAllocate with zero argument Zheng, Lv
2016-07-27 16:53 Rudolf Marek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5799BD0C.6060706@assembler.cz \
--to=devel@acpica.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.