From: Roland Dreier Date: Fri, 18 Aug 2006 17:41:46 +0000 (-0700) Subject: IB/mthca: No userspace SRQs if HCA doesn't have SRQ support X-Git-Tag: v2.6.18-rc5~64^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5beba53230351b2d77c317c22e66c415f2ebaf02;p=pandora-kernel.git 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 --- Reading git-diff-tree failed