Thread (13 messages) flat view 13 messages, 4 authors, 2021-02-10

Re: [PATCH 2/2] iwlwifi: dbg: Mark ucode tlv data as const

From: Luca Coelho <hidden>
Date: 2021-02-10 12:04:05
Also in: linux-wireless

Takashi Iwai [off-list ref] wrote:
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 <redacted>
Acked-by: Luca Coelho <redacted>
Patch applied to iwlwifi-next.git, thanks.

71b6254a6c98 iwlwifi: dbg: Mark ucode tlv data as const
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help