Thread (10 messages) read the whole thread 10 messages, 5 authors, 2017-06-30

Re: [PATCH] ib_isert: prevent NULL pointer dereference in isert_login_recv_done()

From: Sagi Grimberg <hidden>
Date: 2017-06-29 05:37:03
Also in: lkml

Just tested this patch, I wasn't able to reproduce the NULL pointer
dereference or any other bugs, so this fix seems safe enough to me.

Tested-by: Andrea Righi <redacted>
Can you test just the one liner fix below?
quoted
@@ -1452,7 +1452,7 @@
  isert_login_recv_done(struct ib_cq *cq, struct ib_wc *wc)
  {
  	struct isert_conn *isert_conn = wc->qp->qp_context;
-	struct ib_device *ib_dev = isert_conn->cm_id->device;
+	struct ib_device *ib_dev = isert_conn->device->ib_device;
  
  	if (unlikely(wc->status != IB_WC_SUCCESS)) {
  		isert_print_wc(wc, "login recv");
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help