]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mei: fix potential read outside of array bounds
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 17 Feb 2014 13:13:22 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 18:05:07 +0000 (10:05 -0800)
commita27a76d3c07de08a0d0d298b6bc280c5b820e997
tree35189df75481fe1422219ec453723548bed60680
parent64092858acfd995fae0def466126692423c30828
mei: fix potential read outside of array bounds

Drop not-very-useful check and with this
fix read on index that can be after array end.
Cleanup search function as byproduct.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/client.c