From owner-svn-src-head@FreeBSD.ORG Wed Apr 29 22:28:51 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2D240D94; Wed, 29 Apr 2015 22:28:51 +0000 (UTC) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C2A171046; Wed, 29 Apr 2015 22:28:50 +0000 (UTC) Received: by lbbuc2 with SMTP id uc2so31214759lbb.2; Wed, 29 Apr 2015 15:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=3HsNtZkTVmZEU9q0/sq/rkHnPyLYRzEFx0EhVxezOHg=; b=sZeA8FdoStmb+2HSV0symVyGifDgjVqjA4U3k2v67Nce5UvUEOQ6WaBMxsRh1IV0Zx 3U9YzQou4dVxJTA6ayXw3A2v67SjQ+RWUJZivL20eDBbCgBIoidyjvQsMvhhwsLKYnX1 iRMiofShbQECFubiMjr6a/q4/XDz11aA/fb0s4udlYGlRUGH7kQqYdE8s3Um3vyOJwLo p/r81dAmzZ6twd0llwP9NWdWrOq4BSMgJoSemhLeH4HWmNp+UTN/S5IBSkVSqCxMIkFg Ux7v4s/d2mg9gJ6/8MxLD2VOcxyWO5Sk2AblRpFWBO88xJKfGGKD2qUL6BbEaQDaaR7V i8xg== MIME-Version: 1.0 X-Received: by 10.152.234.139 with SMTP id ue11mr1128155lac.28.1430346528911; Wed, 29 Apr 2015 15:28:48 -0700 (PDT) Sender: davide.italiano@gmail.com Received: by 10.25.88.77 with HTTP; Wed, 29 Apr 2015 15:28:48 -0700 (PDT) In-Reply-To: <201504292200.t3TM0R2J062088@svn.freebsd.org> References: <201504292200.t3TM0R2J062088@svn.freebsd.org> Date: Wed, 29 Apr 2015 15:28:48 -0700 X-Google-Sender-Auth: 3nD7zJvJDv5jQQR5-XQMRe6w42I Message-ID: Subject: Re: svn commit: r282250 - head/sys/sys From: Davide Italiano To: Mariusz Zaborski Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2015 22:28:51 -0000 On Wed, Apr 29, 2015 at 3:00 PM, Mariusz Zaborski 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