diff for duplicates of <51D67066.9070105@gmail.com> diff --git a/a/1.txt b/N1/1.txt index d67d9f5..427cc51 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -18,12 +18,12 @@ On 05/07/13 16:02, Dan Carpenter wrote: > pr_debug("RIO: %s for mport_id=%d\n", __func__, mport_id); > > @@ -1715,7 +1715,7 @@ int rio_unregister_scan(int mport_id, struct rio_scan *scan_ops) -> (mport_id = RIO_MPORT_ANY && port->nscan = scan_ops)) +> (mport_id == RIO_MPORT_ANY && port->nscan == scan_ops)) > port->nscan = NULL; > > - list_for_each_entry(scan, &rio_scans, node) > + list_for_each_entry_safe(scan, tmp, &rio_scans, node) -> if (scan->mport_id = mport_id) { +> if (scan->mport_id == mport_id) { > list_del(&scan->node); > kfree(scan); diff --git a/a/content_digest b/N1/content_digest index 67eb3c9..ad1e84c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020130705060231.GA14443@elgon.mountain\0" "From\0Ryan Mallon <rmallon@gmail.com>\0" "Subject\0Re: [patch] rapidio: use after free in unregister function\0" - "Date\0Fri, 05 Jul 2013 07:06:14 +0000\0" + "Date\0Fri, 05 Jul 2013 17:06:14 +1000\0" "To\0Dan Carpenter <dan.carpenter@oracle.com>\0" "Cc\0Matt Porter <mporter@kernel.crashing.org>" Alexandre Bounine <alexandre.bounine@idt.com> @@ -29,12 +29,12 @@ "> \tpr_debug(\"RIO: %s for mport_id=%d\\n\", __func__, mport_id);\n" "> \n" "> @@ -1715,7 +1715,7 @@ int rio_unregister_scan(int mport_id, struct rio_scan *scan_ops)\n" - "> \t\t (mport_id = RIO_MPORT_ANY && port->nscan = scan_ops))\n" + "> \t\t (mport_id == RIO_MPORT_ANY && port->nscan == scan_ops))\n" "> \t\t\tport->nscan = NULL;\n" "> \n" "> -\tlist_for_each_entry(scan, &rio_scans, node)\n" "> +\tlist_for_each_entry_safe(scan, tmp, &rio_scans, node)\n" - "> \t\tif (scan->mport_id = mport_id) {\n" + "> \t\tif (scan->mport_id == mport_id) {\n" "> \t\t\tlist_del(&scan->node);\n" "> \t\t\tkfree(scan);\n" "\n" @@ -44,4 +44,4 @@ "\n" ~Ryan -58c1699924183ebe04d1812d4cb0ffdf3ee805280d4f61ae0a5cb5e1a4760459 +2098b2b4e867262cf1abc5df68695e41c9b4d0ae5821b27f2bf65bee945fe3e7
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.