summaryrefslogtreecommitdiff
path: root/curvetun/Makefile
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-09-01 16:11:34 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-09-01 16:11:34 +0200
commitb91143ff4258957189331cf63c2e58cace471614 (patch)
tree69bf95058dd1a18079e761dc29c2cdae77490bd8 /curvetun/Makefile
parent03f5d65f039bcccfcb8f8aeba14876e308e68dce (diff)
trafgen: Replace variable length arrays
Use zmalloc()'ed buffer or statically sized array to replace usage of variable sized arrays. Found by the sparse static checker. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'curvetun/Makefile')
0 files changed, 0 insertions, 0 deletions
'commit-msg'>xt_entry_target, xt_entry_match and their private data may contain kernel data. Introduce helper functions xt_match_to_user, xt_target_to_user and xt_data_to_user that copy only the expected fields. These replace existing logic that calls copy_to_user on entire structs, then overwrites select fields. Private data is defined in xt_match and xt_target. All matches and targets that maintain kernel data store this at the tail of their private structure. Extend xt_match and xt_target with .usersize to limit how many bytes of data are copied. The remainder is cleared. If compatsize is specified, usersize can only safely be used if all fields up to usersize use platform-independent types. Otherwise, the compat_to_user callback must be defined. This patch does not yet enable the support logic. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'sound/soc/codecs/max98925.c')