]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Keep SC_USER as the last send context type
authorJianxin Xiong <jianxin.xiong@intel.com>
Thu, 12 May 2016 17:23:47 +0000 (10:23 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:19 +0000 (19:39 -0400)
commit04704166fe1251c7686e76683659a227fff2cb8e
treef0a347e28e4949c82f8d3f8883e71496c6439ea3
parent8f0501bf22c7dda2afdce5a7d9a58edc04b9b63b
IB/hfi1: Keep SC_USER as the last send context type

SC_USER needs to be the last send context type to ensure other
send context types get their allocation when num_user_contexts
is set to a large number.

This fixes a panic when the module parameter num_user_contexts
is set to 141 and larger.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/pio.h