aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/panel/panel-novatek-nt39016.c
diff options
context:
space:
mode:
authorFrancesco Ruggeri <fruggeri@arista.com>2019-11-19 21:47:27 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-11-29 10:31:12 +0100
commit833a426cc471b6088011b3d67f1dc4e147614647 (patch)
tree3ee114c6786b4cb9e9e908c185d4ca42faea0fc9 /drivers/gpu/drm/panel/panel-novatek-nt39016.c
parentMerge tag 'acpi-5.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (diff)
downloadlinux-dev-833a426cc471b6088011b3d67f1dc4e147614647.tar.xz
linux-dev-833a426cc471b6088011b3d67f1dc4e147614647.zip
ACPI: OSL: only free map once in osl.c
acpi_os_map_cleanup checks map->refcount outside of acpi_ioremap_lock before freeing the map. This creates a race condition the can result in the map being freed more than once. A panic can be caused by running for ((i=0; i<10; i++)) do for ((j=0; j<100000; j++)) do cat /sys/firmware/acpi/tables/data/BERT >/dev/null done & done This patch makes sure that only the process that drops the reference to 0 does the freeing. Fixes: b7c1fadd6c2e ("ACPI: Do not use krefs under a mutex in osl.c") Signed-off-by: Francesco Ruggeri <fruggeri@arista.com> Reviewed-by: Dmitry Safonov <0x7f454c46@gmail.com> Cc: All applicable <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/gpu/drm/panel/panel-novatek-nt39016.c')
0 files changed, 0 insertions, 0 deletions