]> git.baikalelectronics.ru Git - kernel.git/commit
ntb: off by one sanity checks
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 22 Jan 2013 07:19:14 +0000 (10:19 +0300)
committerJon Mason <jon.mason@intel.com>
Wed, 15 May 2013 17:57:24 +0000 (10:57 -0700)
commit3752cba1181d7c14387d04f4c062efa612d67103
tree1a8f9da0ae59e8b24abe48b33a3221198ee7f4b4
parent3520ee426cb4a1fc5cc5e1144a46920d927000ba
ntb: off by one sanity checks

These tests are off by one.  If "mw" is equal to NTB_NUM_MW then we
would go beyond the end of the ndev->mw[] array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jon Mason <jon.mason@intel.com>
drivers/ntb/ntb_hw.c