svn commit: r282250 - head/sys/sys
Davide Italiano
davide at freebsd.org
Wed Apr 29 22:28:51 UTC 2015
On Wed, Apr 29, 2015 at 3:00 PM, Mariusz Zaborski <oshogbo at freebsd.org> wrote:
> Author: oshogbo
> Date: Wed Apr 29 22:00:26 2015
> New Revision: 282250
> URL: https://svnweb.freebsd.org/changeset/base/282250
>
> Log:
> Nvlist functionality is not used within interrupt context, so we should
> use M_WAITOK to allocate memory.
>
> Approved by: pjd (mentor)
>
FYI, given you're passing M_WAITOK to malloc(9) you can now remove all
the check for return type, as long as malloc(9) with M_WAITOK can
never fail.
--
Davide
"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
More information about the svn-src-head
mailing list