]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Handle devices that don't support SRQ
authorShirley Ma <xma@us.ibm.com>
Thu, 15 Dec 2005 21:25:33 +0000 (21:25 +0000)
committerRoland Dreier <rolandd@cisco.com>
Thu, 9 Nov 2006 19:35:58 +0000 (11:35 -0800)
commitc4ecbe83483cdaf86f85b497dae6b4410d469c64
tree94da926858e850e04dcaa43f3bf0d23f81fa7261
parent572d4582861c43ebc7a91476e9d0ac4af784f292
Handle devices that don't support SRQ

create_srq is not a mandatory device function, therefore in
userspace/libibverbs/src/verbs.c ibv_create_srq should check
create_srq() first before calling it, otherwise the caller will cause
the segmentation fault on device which doesn't support SRQs.

Signed-off-by: Shirley Ma <xma@us.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
ChangeLog
src/verbs.c