Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp214609yba; Mon, 1 Apr 2019 05:08:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsYQO1fHw0LLmjlnz/OyQAQPEqr9NGd4P+QB8d0vbK8pkl6pnpKKlB9mBRrmEJ/StEPhYN X-Received: by 2002:a17:902:44a4:: with SMTP id l33mr64035494pld.292.1554120493068; Mon, 01 Apr 2019 05:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554120493; cv=none; d=google.com; s=arc-20160816; b=opFoCkyQfzCxNezSHdAPNvxTdv5zDlD7EIoeLW1kt9M809yqyE0TbAXnWbR3SLxy0m iiMGnQiz4elrZAs5xGRLZzoQ7PIYljdIiLUSyMUojulrq22VsnyUe0BCzpyylLGf5lBr yNtq3Pl4my5IzjnJ37ZNmDHRUnfn17CWrQKrOQZBfjKb/1zJnACb5GSIEH202t1Yy+oQ KEBc9A8fyIvI5tqrgDdhvGVzfwuPPSa7ENrSjcwqvdyaCfVwu336Bp3rxel9HGNljjYt bv8XU6eZ0wHZkSM1RsYUq/oKuUDts9s936B+bLn2ejXGzTyhBFZ5j2NkTKqXM+6Wg2/u /x1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=NbQwYxhD1GJUI+86oE424O4Ya7Qekvp1w/74+ElfbcM=; b=FC1t7xxZkZFSpwxUjmcfP0h+83Ldh+sCpHYdUMf7k9TLi/q6jVJCPCPOJ4cvgH2dh9 i6a9FuUFxW2wmvxVKE4kbuOgi19wG2TN6wf1KpHMJeIybYGduZvug9rYdq/cmcL8p8K7 K8srUt2pdXngVfq8v3vZQjepFPRM84AtA6fKp2oJ1fP3MUyp9Xbpen/ZpOov5B4QdxxM 3W8YAcXp7ei8PKOb3EASaMnPOs5mcTE79p4o/tG+wO8wv+1HkCUCEuyr94H2EpCh+oSD mCHRdtWn5nF2DoKxeleynhbmAtCc7Rc7fGK5uf66J8WoIcYuWdPgSPbRtgD97QSb6ACg 4PlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=l9IZ1wEX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z8si8510010pgh.82.2019.04.01.05.07.57; Mon, 01 Apr 2019 05:08:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=l9IZ1wEX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726657AbfDAMHV (ORCPT + 99 others); Mon, 1 Apr 2019 08:07:21 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:45634 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726412AbfDAMHV (ORCPT ); Mon, 1 Apr 2019 08:07:21 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190401120719euoutp01364588f9e88d48cb766f9c504f45ad2b~RWE5IlDBj1497414974euoutp010 for ; Mon, 1 Apr 2019 12:07:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190401120719euoutp01364588f9e88d48cb766f9c504f45ad2b~RWE5IlDBj1497414974euoutp010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1554120439; bh=NbQwYxhD1GJUI+86oE424O4Ya7Qekvp1w/74+ElfbcM=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=l9IZ1wEXbQl8+LoMUmE98ZqPpJlhzsY7ZrmULwZdi52XRzKC0W/OspOhQSel6JAaH ZVDmKKbYPKrzr0syUumkvfnCNe8HpCOYpeNNp5ciIYSXnwRQWZn+SPlrd7LO4QszPo Rx0NLkJUjZHF16tRhcmRt62se/RiEKr5gCPiQwGI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190401120719eucas1p27dd8a531d2e9b345bc111a6e75f41a67~RWE40ckrx2147621476eucas1p2W; Mon, 1 Apr 2019 12:07:19 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id A6.C1.04298.7FEF1AC5; Mon, 1 Apr 2019 13:07:19 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190401120718eucas1p29f9e74edf63ab6b52df497d0c6981f5d~RWE4MJHk22147621476eucas1p2V; Mon, 1 Apr 2019 12:07:18 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190401120718eusmtrp19cddcb4b31080dc7f9a8bb1c449bb8f9~RWE39_PIi1453914539eusmtrp15; Mon, 1 Apr 2019 12:07:18 +0000 (GMT) X-AuditID: cbfec7f2-f2dff700000010ca-83-5ca1fef76687 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 53.4A.04140.6FEF1AC5; Mon, 1 Apr 2019 13:07:18 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190401120718eusmtip1807e41e08249bfd233a00714228138de~RWE3q-vks2203722037eusmtip1Y; Mon, 1 Apr 2019 12:07:18 +0000 (GMT) Subject: Re: [PATCH 06/12] omapfb: add missing of_node_put after of_device_is_available To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: Date: Mon, 1 Apr 2019 14:07:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <1550928043-14889-7-git-send-email-Julia.Lawall@lip6.fr> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsWy7djPc7rf/y2MMTjfzGpx5et7NotlD04z Wmy9JW1xou8Dq8XlXXPYLGYv6WdxYPPYuyXL4373cSaPz5vkApijuGxSUnMyy1KL9O0SuDJW dZ1hL9jLVnFt00rGBsavLF2MnBwSAiYSlzv/AdlcHEICKxglZh55ywrhfGGU+PXwBDOE85lR 4tLyScwwLeee3YRKLGeU2Dj1JlT/W0aJaTubmECqhAUiJV5PeMcIYosIqEu0btjFCFLELDCf UWLPyj+sIAk2ASuJie2rwIp4Bewkdp2cDTSJg4NFQEXi71RXEFNUIEKi/4w6RIWgxMmZT8Du 5hRwlTg7owNsFbOAgcSRRXNYIWx5ie1v54AdJyHQzS5xc9EKNoirXSQa12yB+kBY4tXxLewQ tozE6ck9LBAN6xgl/na8gOreziixfPI/qG5ricPHL7JC2I4Scz+uZgW5TkKAT+LGW0GIzXwS k7ZNZ4YI80p0tAlBVKtJbFi2gQ1mV9fOlVA3eEic3/SOaQKj4iwkv81C8s8sJP8sYGRexS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UCBlCKX644P Lx/5L1wqPHfzKl570WtKfdse9yqssI/VDTx37oLoZ7kVXYGGpRJOq04vyW1pXBJ752iOVbIr 0wOBHDZbzaf8eTNrC7e9jXj/7MZdE729SizFGYmGWsxFxYkAQZtIt6cCAAA= X-CMS-MailID: 20190401120718eucas1p29f9e74edf63ab6b52df497d0c6981f5d X-Msg-Generator: CA X-RootMTR: 20190223135900epcas2p27cce442a6e691905bd290e89d4c17dbb X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190223135900epcas2p27cce442a6e691905bd290e89d4c17dbb References: <1550928043-14889-1-git-send-email-Julia.Lawall@lip6.fr> <1550928043-14889-7-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2019 02:20 PM, Julia Lawall wrote: > Add an of_node_put when a tested device node is not available. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > identifier f; > local idexpression e; > expression x; > @@ > > e = f(...); > ... when != of_node_put(e) > when != x = e > when != e = x > when any > if (<+...of_device_is_available(e)...+>) { > ... when != of_node_put(e) > ( > return e; > | > + of_node_put(e); > return ...; > ) > } > // > > Fixes: f76ee892a99e6 ("omapfb: copy omapdss & displays for omapfb") > Signed-off-by: Julia Lawall Patch queued for v5.2, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics