]> git.baikalelectronics.ru Git - kernel.git/commit
mei: fix out of array access to me clients array
authorTomas Winkler <tomas.winkler@intel.com>
Tue, 7 May 2013 18:12:31 +0000 (21:12 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 16:54:26 +0000 (09:54 -0700)
commit08272abf07f7b492701485a0669c8ef5acc016d7
treee7dff466e9abd76c37f8dc15b47fd7a0b9b0d457
parent9d930e222b49f0c00350f5e13cb227ff6055c9a8
mei: fix out of array access to me clients array

The patch fe8f791a1719: "mei: implement mei_cl_connect function"
from Jan 8, 2013, leads to the following static checker warning:
"drivers/misc/mei/main.c:522 mei_ioctl_connect_client()
 warn: check 'dev->me_clients[]' for negative offsets (-2)"

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/main.c