diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-08-31 15:02:13 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-08-31 15:09:05 +0300 |
commit | 4127e80a93e8a4ac009a03a8b0897e89042c7ea0 (patch) | |
tree | f78a394e9885467737ff2ee0afc4dbd6d8c1cdf8 /sound/pci/cs46xx | |
parent | 34b64e5ebffc5e4a9dbf8735561c4159a936248f (diff) | |
download | linux-4127e80a93e8a4ac009a03a8b0897e89042c7ea0.tar.xz |
ALSA: seq: initialize whole fields of automatic variable with union type
Currently, automatic variable of 'union ioctl_arg' type is initialized
by designated initialization. Although, the actual effect is interpretation
of early element of int type and initialization of 'int pversion'.
Therefore the first field corresponding to int type is initialized to zero.
This is against my expectation to initialize whole fields.
This commit uses memset() to initialize the variable, instead of designated
initialization.
Fixes: 04a56dd8ed0d ('ALSA: seq: change ioctl command operation to get data in kernel space')
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/cs46xx')
0 files changed, 0 insertions, 0 deletions