summaryrefslogtreecommitdiff
path: root/kernel/kheaders.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-01-12 14:24:49 +0100
committerLuca Coelho <luciano.coelho@intel.com>2021-02-10 13:58:15 +0200
commit403ea939ea6a2fc322d93de40a2babd1fe9e6a19 (patch)
tree1993aa8a22c6ae0f370f32813ff1e19a4690e6d1 /kernel/kheaders.c
parent410f758529bc227b186ba0846bcc75ac0700ffb2 (diff)
iwlwifi: dbg: Mark ucode tlv data as const
The ucode TLV data may be read-only and should be treated as const pointers, but currently a few code forcibly cast to the writable pointer unnecessarily. This gave developers a wrong impression as if it can be modified, resulting in crashing regressions already a couple of times. This patch adds the const prefix to those cast pointers, so that such attempt can be caught more easily in future. Signed-off-by: Takashi Iwai <tiwai@suse.de> Acked-by: Luca Coelho <luciano.coelho@intel.com> Link: https://lore.kernel.org/r/20210112132449.22243-3-tiwai@suse.de Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'kernel/kheaders.c')
0 files changed, 0 insertions, 0 deletions