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)
committerDarren Hart <dvhart@linux.intel.com>
Mon, 29 Sep 2014 21:54:27 +0000 (14:54 -0700)
commita666b6ffbc9b6705a3ced704f52c3fe9ea8bf959
treee185e11600a42879f790594f44c76ef39036005c
parent557b4549714536b161522960a36f0aa7f527418c
dell-wmi: Fix access out of memory

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>
drivers/platform/x86/dell-wmi.c