]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dell-wmi: Fix access out of memory
authorPali Rohár <pali.rohar@gmail.com>
Mon, 29 Sep 2014 13:10:51 +0000 (15:10 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 17 Oct 2014 07:43:22 +0000 (09:43 +0200)
commit6fd64e7d017a6355e2debeaf5ceb61c2a4c407e1
tree7811026272dee6f36fe3a94aae92256b3a86ea15
parent8d9c8c3980a85d79db13c5ce4bb118fef32d4f50
dell-wmi: Fix access out of memory

commit a666b6ffbc9b6705a3ced704f52c3fe9ea8bf959 upstream.

Without this patch, dell-wmi is trying to access elements of dynamically
allocated array without checking the array size. This can lead to memory
corruption or a kernel panic. This patch adds the missing checks for
array size.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/platform/x86/dell-wmi.c