Searched hist:ae3cf476450674dcba4239f144d310c472a08b5d (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A D | 3945-mac.c | diff ae3cf476450674dcba4239f144d310c472a08b5d Wed Dec 07 00:36:46 CST 2016 Johannes Berg <johannes.berg@intel.com> iwlegacy: make il3945_mac_ops __ro_after_init
There's no need for this to be only __read_mostly, since it's only written in a single way depending on the module parameter, so that can be moved into the module's __init function, and the ops can be __ro_after_init.
This is a little bit safer since it means the ops can't be overwritten (accidentally or otherwise), which would otherwise cause an arbitrary function or bad pointer to be called.
Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
|