]> Git Repo - qemu.git/commit
pvrdma: check number of pages when creating rings
authorPrasad J Pandit <[email protected]>
Wed, 12 Dec 2018 19:30:36 +0000 (01:00 +0530)
committerMarcel Apfelbaum <[email protected]>
Sat, 22 Dec 2018 09:09:57 +0000 (11:09 +0200)
commit2c858ce5da8ae6689c75182b73bc455a291cad41
tree102b7040178f73c37b568f19c2076d4d189ad4e8
parent2aa86456fb938a11f2b7bd57c8643c213218681c
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]>
hw/rdma/vmw/pvrdma_cmd.c
This page took 0.02264 seconds and 4 git commands to generate.