|
@@ -866,7 +866,7 @@ static inline void set_nodma_rtail(struct hfi1_devdata *dd, u16 ctxt)
|
|
|
* interrupt handler for all statically allocated kernel contexts.
|
|
|
*/
|
|
|
if (ctxt >= dd->first_dyn_alloc_ctxt) {
|
|
|
- rcd = hfi1_rcd_get_by_index(dd, ctxt);
|
|
|
+ rcd = hfi1_rcd_get_by_index_safe(dd, ctxt);
|
|
|
if (rcd) {
|
|
|
rcd->do_interrupt =
|
|
|
&handle_receive_interrupt_nodma_rtail;
|
|
@@ -895,7 +895,7 @@ static inline void set_dma_rtail(struct hfi1_devdata *dd, u16 ctxt)
|
|
|
* interrupt handler for all statically allocated kernel contexts.
|
|
|
*/
|
|
|
if (ctxt >= dd->first_dyn_alloc_ctxt) {
|
|
|
- rcd = hfi1_rcd_get_by_index(dd, ctxt);
|
|
|
+ rcd = hfi1_rcd_get_by_index_safe(dd, ctxt);
|
|
|
if (rcd) {
|
|
|
rcd->do_interrupt =
|
|
|
&handle_receive_interrupt_dma_rtail;
|