get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/560512/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 560512,
    "url": "http://patchwork.ozlabs.org/api/patches/560512/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/alpine.DEB.2.10.1512231354150.4367@hadrien/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<alpine.DEB.2.10.1512231354150.4367@hadrien>",
    "list_archive_url": null,
    "date": "2015-12-23T12:55:10",
    "name": "[v2] igb: fix itnull.cocci warnings",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "f6bc3d05b2db8b73d1aa637cdc4764d0b96a6b55",
    "submitter": {
        "id": 10041,
        "url": "http://patchwork.ozlabs.org/api/people/10041/?format=api",
        "name": "Julia Lawall",
        "email": "julia.lawall@lip6.fr"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/alpine.DEB.2.10.1512231354150.4367@hadrien/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/560512/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/560512/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Received": [
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ozlabs.org (Postfix) with ESMTP id 38770140BEE\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 23 Dec 2015 23:55:23 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 81E9B92652;\n\tWed, 23 Dec 2015 12:55:22 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id mhv+N9ICKPi4; Wed, 23 Dec 2015 12:55:21 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id D6DBF925FE;\n\tWed, 23 Dec 2015 12:55:21 +0000 (UTC)",
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id 7534B1C0ED1\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 12:55:19 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 707DAA3A86\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 12:55:19 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id zYkGNjVwLBwu for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 12:55:18 +0000 (UTC)",
            "from mail2-relais-roc.national.inria.fr\n\t(mail2-relais-roc.national.inria.fr [192.134.164.83])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id 9EEB4A2D82\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 12:55:17 +0000 (UTC)",
            "from vaio-julia.rsr.lip6.fr ([132.227.76.33])\n\tby mail2-relais-roc.national.inria.fr with\n\tESMTP/TLS/DHE-RSA-AES256-SHA; 23 Dec 2015 13:55:14 +0100"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-IronPort-AV": "E=Sophos;i=\"5.20,468,1444687200\"; d=\"scan'208\";a=\"193753756\"",
        "Date": "Wed, 23 Dec 2015 13:55:10 +0100 (CET)",
        "From": "Julia Lawall <julia.lawall@lip6.fr>",
        "X-X-Sender": "jll@hadrien",
        "To": "Gangfeng Huang <gangfeng.huang@ni.com>",
        "Message-ID": "<alpine.DEB.2.10.1512231354150.4367@hadrien>",
        "User-Agent": "Alpine 2.10 (DEB 1266 2009-07-14)",
        "MIME-Version": "1.0",
        "Cc": "intel-wired-lan@lists.osuosl.org, kbuild-all@01.org",
        "Subject": "[Intel-wired-lan] [PATCH v2] igb: fix itnull.cocci warnings",
        "X-BeenThere": "intel-wired-lan@lists.osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "The index variable of list_for_each_entry_safe should never be NULL.\n\nGenerated by: scripts/coccinelle/iterators/itnull.cocci\n\nCC: Gangfeng Huang <gangfeng.huang@ni.com>\nSigned-off-by: Fengguang Wu <fengguang.wu@intel.com>\nSigned-off-by: Julia Lawall <julia.lawall@lip6.fr>\n---\n\nv2: Add sign off\n\n igb_cdev.c |    3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)",
    "diff": "--- a/drivers/net/ethernet/intel/igb/igb_cdev.c\n+++ b/drivers/net/ethernet/intel/igb/igb_cdev.c\n@@ -411,8 +411,7 @@ static int igb_close_file(struct inode *\n\n \t\tlist_for_each_entry_safe(userpage, tmp,\n \t\t\t\t\t &adapter->user_page_list, page_node) {\n-\t\t\tif (userpage)\n-\t\t\t\tigb_free_page(adapter, userpage);\n+\t\t\tigb_free_page(adapter, userpage);\n \t\t}\n \t}\n \tmutex_unlock(&adapter->user_page_mutex);\n",
    "prefixes": [
        "v2"
    ]
}