diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-01-28 07:54:16 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-01-28 08:13:54 +0100 |
commit | 7ee96216c31aabe1eb42fb91ff50dae9fcd014b2 (patch) | |
tree | 473bc3e123dd3c69160690ad1f486b9cdd96e1d3 /crypto/crc32.c | |
parent | ac1efcfb35f73657ec1e28b1e8a3c895529c1108 (diff) | |
download | op-kernel-dev-7ee96216c31aabe1eb42fb91ff50dae9fcd014b2.zip op-kernel-dev-7ee96216c31aabe1eb42fb91ff50dae9fcd014b2.tar.gz |
ALSA: dummy: Disable switching timer backend via sysfs
ALSA dummy driver can switch the timer backend between system timer
and hrtimer via its hrtimer module option. This can be also switched
dynamically via sysfs, but it may lead to a memory corruption when
switching is done while a PCM stream is running; the stream instance
for the newly switched timer method tries to access the memory that
was allocated by another timer method although the sizes differ.
As the simplest fix, this patch just disables the switch via sysfs by
dropping the writable bit.
BugLink: http://lkml.kernel.org/r/CACT4Y+ZGEeEBntHW5WHn2GoeE0G_kRrCmUh6=dWyy-wfzvuJLg@mail.gmail.com
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'crypto/crc32.c')
0 files changed, 0 insertions, 0 deletions