Search Linux Wireless

Re: [PATCH 2/2] wifi: cfg80211: simplify cfg80211_mlme_register_mgmt()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2024-12-10 at 17:39 +0300, Dmitry Antipov wrote:
> Simplify 'cfg80211_mlme_register_mgmt()' to allocate an instance of
> 'struct cfg80211_mgmt_registration' only if the latter is really
> needed 

This part is very much broken, and I don't see that it's actually useful
to add a new "goto" just for the (unlikely) case of not needing the
allocation.

> (i.e. when the list of registrations should be updated)
> and prefer 'kmalloc()' over 'kzalloc()' since all of the members
> are explicitly initialized.

This part I disagree with, who knows what we might add. This isn't a
path where we might possibly care about the cost of zeroing, vs. the
added maintenance requirement.

johannes





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux