Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vhost: validate index in inflight API
[ upstream commit d2475e8 ] This patch validates the queue index parameter, in order to ensure neither out-of-bound accesses nor NULL pointer dereferencing happen. Fixes: 4d891f7 ("vhost: add APIs to get inflight ring") Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
- Loading branch information