Date: Wed, 29 Apr 2015 15:28:48 -0700 From: Davide Italiano <davide@freebsd.org> To: Mariusz Zaborski <oshogbo@freebsd.org> Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r282250 - head/sys/sys Message-ID: <CACYV=-F1UymWRqkCGvT8RNZALwn73o%2BmsPixUbPhwW=SH1gn_w@mail.gmail.com> In-Reply-To: <201504292200.t3TM0R2J062088@svn.freebsd.org> References: <201504292200.t3TM0R2J062088@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 29, 2015 at 3:00 PM, Mariusz Zaborski <oshogbo@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACYV=-F1UymWRqkCGvT8RNZALwn73o%2BmsPixUbPhwW=SH1gn_w>