[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3] exec: set map length to zero when returning NULL
From: |
P J P |
Subject: |
Re: [PATCH v3] exec: set map length to zero when returning NULL |
Date: |
Tue, 26 May 2020 16:48:17 +0530 (IST) |
+-- On Tue, 26 May 2020, Peter Maydell wrote --+
| The doc comment for this function in include/exec/memory.h currently says
|
| "May return %NULL if resources needed to perform the mapping
| are exhausted."
|
| If we're tightening the API to guarantee to also set *plen to 0 in this
| failure case it would be good to capture that in the documentation, eg:
|
| "May return %NULL (and set *@plen to 0) if resources needed
| to perform the mapping are exhausted.)"
Sending patch v4. Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
8685 545E B54C 486B C6EB 271E E285 8B5A F050 DE8D