summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_srq.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2006-08-18 10:41:46 -0700
committerRoland Dreier <rolandd@cisco.com>2006-08-18 10:41:46 -0700
commit5beba53230351b2d77c317c22e66c415f2ebaf02 (patch)
tree0f70ebff5d478d36d8440aebac5e311b0cfe5e74 /drivers/infiniband/hw/mthca/mthca_srq.c
parentacaea9ee460d0ba5a14f0066ba26cfa43dd5fdf3 (diff)
downloadblackbird-op-linux-5beba53230351b2d77c317c22e66c415f2ebaf02.tar.gz
blackbird-op-linux-5beba53230351b2d77c317c22e66c415f2ebaf02.zip
IB/mthca: No userspace SRQs if HCA doesn't have SRQ support
Leave all SRQ methods out of the device's uverbs_cmd_mask if the device doesn't have SRQ support (because of ancient firmware) so that we don't allow userspace to call the driver's create_srq method. This fixes a userspace-triggerable oops caused by ib_uverbs_create_srq() following the device's ->create_srq function pointer, which will be NULL if the device doesn't support SRQs. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_srq.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud