From: David Howells Date: Fri, 24 Nov 2017 21:18:16 +0000 Subject: Re: [PATCH] KEYS: remove unnecessary get/put of explicit dest_keyring Message-Id: <5478.1511558296@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit List-Id: References: <20171124203750.GA559@zzz.localdomain> <20171120225757.96498-1-ebiggers3@gmail.com> <23022.1511538725@warthog.procyon.org.uk> In-Reply-To: <20171124203750.GA559@zzz.localdomain> To: linux-security-module@vger.kernel.org Eric Biggers wrote: > > > - construct_get_dest_keyring(&dest_keyring); > > > > This will break. construct_get_dest_keyring() does other things than just > > getting a ref on whatever dest_keyring points to. > > > > Not if dest_keyring is non-NULL (i.e. explicitly specified), which it is in > this case. Actually, you're right. David