diff options
author | Mark Bloch <markb@mellanox.com> | 2016-10-27 16:36:31 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-26 09:56:58 +0100 |
commit | 46e47543175b6784b02f7b587ef83b44fd2c8f7d (patch) | |
tree | bf801c2e882a26fce8afeef1a1b063c603a0a738 /drivers/fpga/zynq-fpga.c | |
parent | 82c377d0531156d30e6d26c3eb13122e8c1c8677 (diff) |
IB/core: Avoid unsigned int overflow in sg_alloc_table
commit 3c7ba5760ab8eedec01159b267bb9bfcffe522ac upstream.
sg_alloc_table gets unsigned int as parameter while the driver
returns it as size_t. Check npages isn't greater than maximum
unsigned int.
Fixes: eeb8461e36c9 ("IB: Refactor umem to use linear SG table")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/zynq-fpga.c')
0 files changed, 0 insertions, 0 deletions