commit | 2c858ce5da8ae6689c75182b73bc455a291cad41 | [log] [tgz] |
---|---|---|
author | Prasad J Pandit <pjp@fedoraproject.org> | Thu Dec 13 01:00:36 2018 +0530 |
committer | Marcel Apfelbaum <marcel.apfelbaum@gmail.com> | Sat Dec 22 11:09:57 2018 +0200 |
tree | 102b7040178f73c37b568f19c2076d4d189ad4e8 | |
parent | 2aa86456fb938a11f2b7bd57c8643c213218681c [diff] |
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 <liq3ea@163.com> Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>