Return-path: Received: from s3.sipsolutions.net ([144.76.43.152]:46269 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934654AbaDJIB5 (ORCPT ); Thu, 10 Apr 2014 04:01:57 -0400 Message-ID: <1397116902.4757.6.camel@jlt4.sipsolutions.net> (sfid-20140410_100200_997740_CBE74951) Subject: Re: [PATCH 2/3] cfg80211: fix processing world regdomain when non modular From: Johannes Berg To: Arik Nemtsov Cc: Colleen T , "Luis R. Rodriguez" , Janusz Dziedzic , linux-wireless , Sander Eikelenboom Date: Thu, 10 Apr 2014 10:01:42 +0200 In-Reply-To: (sfid-20140410_081344_153851_6493AFAD) References: <1393376982-28276-1-git-send-email-mcgrof@do-not-panic.com> <1393376982-28276-3-git-send-email-mcgrof@do-not-panic.com> <1393852248.10039.5.camel@jlt4.sipsolutions.net> <1397071009.4964.18.camel@jlt4.sipsolutions.net> (sfid-20140410_081344_153851_6493AFAD) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2014-04-10 at 09:13 +0300, Arik Nemtsov wrote: > On Wed, Apr 9, 2014 at 10:16 PM, Johannes Berg > wrote: > > +static void reg_free_last_request(struct regulatory_request *lr) > > > > Isn't it odd to pass the last request to a function called > > reg_free_last_request()? > > > > It makes sense to me. Non-last requests are freed using kfree. The > last request needs RCU. Yeah but there can only be one "last request", so why pass it? johannes