android_kernel_xiaomi_sm8350/sound/core
Hugh Dickins f3d48f0373 [PATCH] unpaged: fix sound Bad page states
Earlier I unifdefed PageCompound, so that snd_pcm_mmap_control_nopage and
others can give out a 0-order component of a higher-order page, which won't
be mistakenly freed when zap_pte_range unmaps it.  But many Bad page states
reported a PG_reserved was freed after all: I had missed that we need to
say __GFP_COMP to get compound page behaviour.

Some of these higher-order pages are allocated by snd_malloc_pages, some by
snd_malloc_dev_pages; or if SBUS, by sbus_alloc_consistent - but that has
no gfp arg, so add __GFP_COMP into its sparc32/64 implementations.

I'm still rather puzzled that DRM seems not to need a similar change.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-22 09:13:43 -08:00
..
oss [ALSA] Add missing KERN_* prefix 2005-11-04 13:19:32 +01:00
seq [ALSA] Fix schedule_timeout usage 2005-11-04 13:19:49 +01:00
control_compat.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
control.c [ALSA] Remove snd_runtime_check() macro 2005-11-04 13:17:42 +01:00
device.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
hwdep_compat.c
hwdep.c [ALSA] fix improper CONFIG_SND_MAJOR usage 2005-11-04 13:20:08 +01:00
info_oss.c
info.c [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
init.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
isadma.c
Kconfig [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
Makefile [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
memalloc.c [PATCH] unpaged: fix sound Bad page states 2005-11-22 09:13:43 -08:00
memory.c [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
misc.c [ALSA] Remove kmalloc wrappers 2005-11-04 13:18:08 +01:00
pcm_compat.c [ALSA] pcm - Fix zero-division in 32bit compat layer 2005-08-30 08:47:40 +02:00
pcm_lib.c [ALSA] Use getnstimeofday() 2005-11-04 13:17:47 +01:00
pcm_memory.c [ALSA] Replace with kzalloc() - core stuff 2005-09-12 10:47:59 +02:00
pcm_misc.c
pcm_native.c [ALSA] fix improper CONFIG_SND_MAJOR usage 2005-11-04 13:20:08 +01:00
pcm_timer.c
pcm.c [ALSA] Remove snd_runtime_check() macro 2005-11-04 13:17:42 +01:00
rawmidi_compat.c
rawmidi.c [ALSA] fix improper CONFIG_SND_MAJOR usage 2005-11-04 13:20:08 +01:00
rtctimer.c [ALSA] timers: add module refcounting for global timers 2005-11-04 13:18:43 +01:00
sgbuf.c
sound_oss.c [PATCH] Assign device pointer to OSS devices 2005-08-30 08:58:37 +02:00
sound.c [DRIVER MODEL] Convert platform drivers to use struct platform_driver 2005-11-09 22:32:44 +00:00
timer_compat.c
timer.c [ALSA] timer: formatting changes 2005-11-04 13:18:47 +01:00