diff for duplicates of <20140402150858.GA552@mwanda> diff --git a/a/1.txt b/N1/1.txt index 4ec5072..9b82163 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -2,7 +2,7 @@ We recently added some locking to this function and there was an error path which missed the unlock. Fixes: 9306dcbc96f3 ('RDMA/cxgb4: Lock around accept/reject downcalls') -Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> +Signed-off-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c index 303e29c..f3753a1 100644 @@ -11,8 +11,12 @@ index 303e29c..f3753a1 100644 @@ -2524,6 +2524,7 @@ int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len) mutex_lock(&ep->com.mutex); - if (ep->com.state = DEAD) { + if (ep->com.state == DEAD) { + mutex_unlock(&ep->com.mutex); c4iw_put_ep(&ep->com); return -ECONNRESET; } +-- +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 diff --git a/a/content_digest b/N1/content_digest index c97adcd..908f8af 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\0001f01cf4e7f$6ceba770$46c2f650$@opengridcomputing.com\0" - "From\0Dan Carpenter <dan.carpenter@oracle.com>\0" + "From\0Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>\0" "Subject\0[patch] RDMA/cxgb4: release mutex on error in c4iw_reject_cr()\0" - "Date\0Wed, 02 Apr 2014 15:08:58 +0000\0" + "Date\0Wed, 2 Apr 2014 18:08:58 +0300\0" "To\0Steve Wise <swise-ut6Up61K2wZBDgjK7y7TUQ@public.gmane.org>\0" "Cc\0Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>" Sean Hefty <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> @@ -14,7 +14,7 @@ "path which missed the unlock.\n" "\n" "Fixes: 9306dcbc96f3 ('RDMA/cxgb4: Lock around accept/reject downcalls')\n" - "Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>\n" + "Signed-off-by: Dan Carpenter <dan.carpenter-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>\n" "\n" "diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c\n" "index 303e29c..f3753a1 100644\n" @@ -23,10 +23,14 @@ "@@ -2524,6 +2524,7 @@ int c4iw_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)\n" " \n" " \tmutex_lock(&ep->com.mutex);\n" - " \tif (ep->com.state = DEAD) {\n" + " \tif (ep->com.state == DEAD) {\n" "+\t\tmutex_unlock(&ep->com.mutex);\n" " \t\tc4iw_put_ep(&ep->com);\n" " \t\treturn -ECONNRESET;\n" - " \t}" + " \t}\n" + "--\n" + "To unsubscribe from this list: send the line \"unsubscribe linux-rdma\" in\n" + "the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org\n" + More majordomo info at http://vger.kernel.org/majordomo-info.html -57ad092f8e096358fc524e232b0e1d45a9560a799b5906604f62b82d4416f3a0 +db1b83d48501491908c4f15eb29bec5ab7df29b75fbf72fd486de3a12665e7d8
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.