diff options
| author | Ajay Agarwal <ajaya@codeaurora.org> | 2017-05-05 15:05:51 +0530 |
|---|---|---|
| committer | Ajay Agarwal <ajaya@codeaurora.org> | 2017-05-05 17:24:12 +0530 |
| commit | 82fe037ea706ad12d67e22db70bc02b65c5e6686 (patch) | |
| tree | c7526a326c17ff34e69da307f44130345f33f81f /net/unix/af_unix.c | |
| parent | 9416e47b01b79bdde69200f10ffa0992dc407ec2 (diff) | |
sound: usb: Fix format desc usage for BADD 3.0 devices
For a BADD device, the audioformat structure was directly
being populated without initialising the format type
descriptor. This can lead to a crash later when the
format type and rates are being parsed but the NULL fmt
desc is dereferenced. Fix this by allocating a dummy copy
of fmt desc for BADD 3.0 devices and populating
necessary fields.
Change-Id: I80f33b0e400a9c522a800e989228da134100bb55
Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
