diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2021-10-27 21:55:27 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-10-28 09:10:33 +0200 |
commit | d593f78e3b53891692162d7b4e68f341c5869295 (patch) | |
tree | 4ec7fa428c5f6abf59a234167a035ff911678c9c /.clang-format | |
parent | 375f8426ed994addd2be4d76febc946a6fdd8280 (diff) |
ALSA: firewire-motu: fix null pointer dereference when polling hwdep character device
ALSA firewire-motu driver recently got support for event notification via
ALSA HwDep interface for register DSP models. However, when polling ALSA
HwDep cdev, the driver can cause null pointer dereference for the other
models due to accessing to unallocated memory or uninitialized memory.
This commit fixes the bug by check the type of model before accessing to
the memory.
Reported-by: kernel test robot <lkp@intel.com>
Suggested-by: Takashi Iwai <tiwai@suse.de>
Fixes: 634ec0b2906e ("ALSA: firewire-motu: notify event for parameter change in register DSP model")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20211027125529.54295-2-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions