diff options
author | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-07 18:12:48 +1100 |
---|---|---|
committer | Mark Farrugia <mark.farrugia@fiberdyne.com.au> | 2018-10-26 17:27:37 +1100 |
commit | aeb43d0374f4b1fb383da088b198de55f139a280 (patch) | |
tree | 3799c41bc7b230a3eb2a98ce05fd079a0cd02681 /configfs.c | |
parent | 86c77302e07b229d6723dc1f8e3da02765cff1f1 (diff) |
Ensure no buffer overflow when setting card description
Sanity guard the sound card string buffers with strncpy
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
Diffstat (limited to 'configfs.c')
-rw-r--r-- | configfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -173,12 +173,14 @@ static struct configfs_attribute *cfg_avirt_stream_group_attrs[] = { }; static struct configfs_group_operations cfg_avirt_stream_group_ops = { - .make_item = cfg_avirt_stream_make_item}; + .make_item = cfg_avirt_stream_make_item +}; static struct config_item_type cfg_stream_group_type = { .ct_group_ops = &cfg_avirt_stream_group_ops, .ct_attrs = cfg_avirt_stream_group_attrs, - .ct_owner = THIS_MODULE}; + .ct_owner = THIS_MODULE +}; static struct config_item_type cfg_avirt_group_type = { .ct_owner = THIS_MODULE, |