mei: make sure that me_clients_map big enough before copying
authorTomas Winkler <tomas.winkler@intel.com>
Mon, 2 Sep 2013 00:11:01 +0000 (03:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 15:23:00 +0000 (08:23 -0700)
commit23f5a322063cba7c9f5dba5205e2960a24291373
tree3df53fb4fda1498c03714330f63c1352af326deb
parentcaaeb09afda3a2239e02d495cea7e629136e09ee
mei: make sure that me_clients_map big enough before copying

To make static analyzers happy validated that
sizeof me_clients_map  is larger than sizeof valid_addresses from the
enumeration response before memcpy
We can use BUILD_ON macro as both arrays are defined statically

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