Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pvrdma: check number of pages when creating rings
When creating CQ/QP rings, an object can have up to PVRDMA_MAX_FAST_REG_PAGES 8 pages. Check 'npages' parameter to avoid excessive memory allocation or a null dereference. Reported-by: Li Qiang <[email protected]> Signed-off-by: Prasad J Pandit <[email protected]> Reviewed-by: Yuval Shaia <[email protected]> Signed-off-by: Marcel Apfelbaum <[email protected]>
- Loading branch information