get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816119,
    "url": "http://patchwork.ozlabs.org/api/patches/816119/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1505901971-12004-3-git-send-email-arvind.yadav.cs@gmail.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1505901971-12004-3-git-send-email-arvind.yadav.cs@gmail.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1505901971-12004-3-git-send-email-arvind.yadav.cs@gmail.com/",
    "date": "2017-09-20T10:06:10",
    "name": "[2/3] ASoC: fsl-asoc-card: Handle return value of devm_kasprintf",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "da9515cf5d9e38b66ea69fa79f955f17c337ae11",
    "submitter": {
        "id": 69434,
        "url": "http://patchwork.ozlabs.org/api/people/69434/?format=api",
        "name": "Arvind Yadav",
        "email": "arvind.yadav.cs@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1505901971-12004-3-git-send-email-arvind.yadav.cs@gmail.com/mbox/",
    "series": [
        {
            "id": 4069,
            "url": "http://patchwork.ozlabs.org/api/series/4069/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=4069",
            "date": "2017-09-20T10:06:08",
            "name": "ASoC: Handle return value of devm_kasprintf",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4069/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816119/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816119/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>",
        "X-Original-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@ozlabs.org",
            "linuxppc-dev@lists.ozlabs.org"
        ],
        "Received": [
            "from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxwYH1wbWz9s81\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 20:13:07 +1000 (AEST)",
            "from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xxwYH0n1nzDqrG\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 20 Sep 2017 20:13:07 +1000 (AEST)",
            "from mail-pg0-x241.google.com (mail-pg0-x241.google.com\n\t[IPv6:2607:f8b0:400e:c05::241])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xxwQb4QdkzDqYV\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 20:07:19 +1000 (AEST)",
            "by mail-pg0-x241.google.com with SMTP id i130so1395834pgc.0\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tWed, 20 Sep 2017 03:07:19 -0700 (PDT)",
            "from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102])\n\tby smtp.googlemail.com with ESMTPSA id\n\tu12sm10492250pfg.146.2017.09.20.03.07.13\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 03:07:17 -0700 (PDT)"
        ],
        "Authentication-Results": [
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Mf3sNxsJ\"; dkim-atps=neutral",
            "lists.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Mf3sNxsJ\"; dkim-atps=neutral",
            "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gmail.com\n\t(client-ip=2607:f8b0:400e:c05::241; helo=mail-pg0-x241.google.com;\n\tenvelope-from=arvind.yadav.cs@gmail.com; receiver=<UNKNOWN>)",
            "lists.ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Mf3sNxsJ\"; dkim-atps=neutral"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=D3WII+WkDxZhmxBQx45BKiznRv6187MVXrvQH/9ndn8=;\n\tb=Mf3sNxsJxzjLTQUO97A1pXTHc54DmuaLgw61iv8XIz7xXZ5+bBrjpm78tr1jbfxVIU\n\tKul7ay6fprja0rX8I5TK4fLJ19a09hJkMjKOnmxZXfc+dc7PM7BIYP4Iar7H+D94oPdG\n\tOs4IOf2wwcivozomAnlY2LHKBTLahBOlcU563a48CON0PW9UUqmXxijgQJboANNoJnDl\n\tc22kzgT0Z5+M+bVKQeFZY4Hjv9AFBmBDs3oIBfX9kOJU2+ZSAm9RW+BQh+SF54WjXC7m\n\tds2KoEEOUyaQxBGNYLqQCnuF/bg9MfUDI6PQeMG9erUPnTQYpVeUcmlx5RCi8MJKkxae\n\t45RQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=D3WII+WkDxZhmxBQx45BKiznRv6187MVXrvQH/9ndn8=;\n\tb=Y51FcyjfipzGuQ/Tx9SqPdPE7WhkhwF4LNLiyLdfs00BR5mswZkLFKPg0xgQq7eh9S\n\tz0aBcxF7HTR3WLZ2Z8lPFFw0LJFZiGfUk8/t+cuFyji1zp9liZtJIyVh4rGei1zyvYxj\n\tq2SKyLZCv+z4zCTUzwMaFi5icv8wsgAQxWwH3PVsV+HzOuNDegLGA8nd6FMKasM1kurj\n\tqFiTZHPEL5GNdX4Moqdzi66UlCbPmWT40/2ITqOaUzs/16Pu8iTGD9rJ5OvHyZtEjzOu\n\tNWd6Bvu7rUeFI2D4tHtCmspsa27Kwi83fR1TI8fHd50Kb+0pbgILl1iygXuHzzbG7Py8\n\tAKgQ==",
        "X-Gm-Message-State": "AHPjjUhntqGY1u/5ZwWrhFYLDJZ17LHlTjZLqXajvehI+VI9eJ5i6E7j\n\t3tsKRN7zWZ2ykglQD0yQ+as=",
        "X-Google-Smtp-Source": "AOwi7QD1KIjnoDrEhvV05ZXt7oBjvjIR5DMdKX9xtr9DRW+SfeFgC5Wyqqd54IoWTKmmSYkL3joxPA==",
        "X-Received": "by 10.99.126.84 with SMTP id o20mr1629840pgn.201.1505902037834; \n\tWed, 20 Sep 2017 03:07:17 -0700 (PDT)",
        "From": "Arvind Yadav <arvind.yadav.cs@gmail.com>",
        "To": "lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, \n\ttimur@tabi.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com,\n\tfabio.estevam@nxp.com, peter.ujfalusi@ti.com,\n\talsa-devel@alsa-project.org, linux-kernel@vger.kernel.org",
        "Subject": "[PATCH 2/3] ASoC: fsl-asoc-card: Handle return value of\n\tdevm_kasprintf",
        "Date": "Wed, 20 Sep 2017 15:36:10 +0530",
        "Message-Id": "<1505901971-12004-3-git-send-email-arvind.yadav.cs@gmail.com>",
        "X-Mailer": "git-send-email 1.9.1",
        "In-Reply-To": "<1505901971-12004-1-git-send-email-arvind.yadav.cs@gmail.com>",
        "References": "<1505901971-12004-1-git-send-email-arvind.yadav.cs@gmail.com>",
        "X-BeenThere": "linuxppc-dev@lists.ozlabs.org",
        "X-Mailman-Version": "2.1.24",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>",
        "List-Unsubscribe": "<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.ozlabs.org/pipermail/linuxppc-dev/>",
        "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>",
        "List-Subscribe": "<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>",
        "Cc": "linux-omap@vger.kernel.org, linuxppc-dev@lists.ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org",
        "Sender": "\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"
    },
    "content": "devm_kasprintf() can fail here and we must check its return value.\n\nSigned-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>\n---\n sound/soc/fsl/fsl-asoc-card.c | 2 ++\n 1 file changed, 2 insertions(+)",
    "diff": "diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c\nindex 2db4d0c..86f240b 100644\n--- a/sound/soc/fsl/fsl-asoc-card.c\n+++ b/sound/soc/fsl/fsl-asoc-card.c\n@@ -639,6 +639,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)\n \t\t\t\tdevm_kasprintf(&pdev->dev, GFP_KERNEL,\n \t\t\t\t\t       \"ac97-codec.%u\",\n \t\t\t\t\t       (unsigned int)idx);\n+\t\tif (!priv->dai_link[0].codec_name)\n+\t\t\tgoto asrc_fail;\n \t}\n \n \tpriv->dai_link[0].platform_of_node = cpu_np;\n",
    "prefixes": [
        "2/3"
    ]
}