Message ID | 1554807715-2353-8-git-send-email-eugen.hristev@microchip.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 27EC5139A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 9 Apr 2019 11:09:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A73228590 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 9 Apr 2019 11:09:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2BBB286EC; Tue, 9 Apr 2019 11:09:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8893528590 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 9 Apr 2019 11:08:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/KzWgMBDJzdaiF9Out95jldmaFSWpYCIsNJNFEFsWlY=; b=awXULazMDt6Uvf EKD9VhkxGZDTbeEskJ4/uJuA26Zp6mTG2s2D+qm05xwQTWsN74tvUXBepdD3utgAZRrskIMI81+Rn d4SyqNZqVEMMm/m97uLcW1Adqgv4x4UZBuKvX8/avRClzhJs3F15eMiVnpRoU27EkLa1NG5geYIqC mP2lTyrTnxejyW3lj8zpMBA6TBGHuEIoU1+WI2oB/8Hn9p0a5sjosQ9NK/Co71rn8EyHMxjtwkzZi V7YdOBAzhvfVyCS9Iqr+q0U+UUJPAex3SmVy+CTaxIHbDB8p0n8Gr6kce+q1c9Y7wHbMUhGqX0h3K WOpIM/Ldy++63INhyMxg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDocW-0005ES-OP; Tue, 09 Apr 2019 11:08:52 +0000 Received: from esa6.microchip.iphmx.com ([216.71.154.253]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDobO-0003tg-Ex for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2019 11:07:46 +0000 X-IronPort-AV: E=Sophos;i="5.60,329,1549954800"; d="scan'208";a="27026424" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 09 Apr 2019 04:07:38 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.108) with Microsoft SMTP Server (TLS) id 14.3.352.0; Tue, 9 Apr 2019 04:07:38 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=twKevkpAnN9QflQd2G+A80nxWKbO79R6mm0EC+IKqxQ=; b=3M+oN+p4ZE1lJesmfg1ZKDaQjmzQLcF36dshdnAnZ7haLVjSPIxtvjy8AmdZmtLr58TAameRKLGpsh51XODQFpirecaJBh0oMHSFYBmbYR71xhch7M7VXPqc20YumlruRThYxgGWCGXjoFBy1ejFhNoDqC8NC9r+fVQE5ryr9n4= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB1403.namprd11.prod.outlook.com (10.168.106.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Tue, 9 Apr 2019 11:07:36 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::e0e3:1d51:9e3e:6dc]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::e0e3:1d51:9e3e:6dc%3]) with mapi id 15.20.1771.021; Tue, 9 Apr 2019 11:07:36 +0000 From: <Eugen.Hristev@microchip.com> To: <linux-media@vger.kernel.org>, <hverkuil@xs4all.nl>, <Nicolas.Ferre@microchip.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <mchehab@kernel.org> Subject: [PATCH 7/7] media: atmel: atmel-isc: fix asd memory allocation Thread-Topic: [PATCH 7/7] media: atmel: atmel-isc: fix asd memory allocation Thread-Index: AQHU7sRwSrFOQ/DSMU+GJr/WNiL6ng== Date: Tue, 9 Apr 2019 11:07:36 +0000 Message-ID: <1554807715-2353-8-git-send-email-eugen.hristev@microchip.com> References: <1554807715-2353-1-git-send-email-eugen.hristev@microchip.com> In-Reply-To: <1554807715-2353-1-git-send-email-eugen.hristev@microchip.com> Accept-Language: ro-RO, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR09CA0054.eurprd09.prod.outlook.com (2603:10a6:802:28::22) To DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Eugen.Hristev@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 640b64f5-dbec-46fd-9dae-08d6bcdb9285 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:DM5PR11MB1403; x-ms-traffictypediagnostic: DM5PR11MB1403: x-microsoft-antispam-prvs: <DM5PR11MB1403171BB164270F6A2751B5E82D0@DM5PR11MB1403.namprd11.prod.outlook.com> x-forefront-prvs: 000227DA0C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(39850400004)(376002)(366004)(346002)(189003)(199004)(106356001)(316002)(110136005)(54906003)(105586002)(86362001)(99286004)(6436002)(5660300002)(6486002)(2201001)(76176011)(26005)(102836004)(486006)(6506007)(52116002)(14454004)(386003)(66066001)(476003)(478600001)(305945005)(8936002)(8676002)(36756003)(50226002)(81166006)(71190400001)(11346002)(72206003)(446003)(81156014)(71200400001)(2616005)(25786009)(3846002)(6116002)(6512007)(186003)(68736007)(4326008)(107886003)(53936002)(2906002)(97736004)(7736002)(2501003)(256004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB1403; H:DM5PR11MB1242.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: SckaddXWDQ00yTPRB469BseNUfW8D58dmoyl5/dL6bThmbDTD6Yt3Mp4CFdGqAw4muZZUu9812CvoRdc59C0Ps5BILLizvkxrbJJObxiy4JkEVOwb76XUVAylN01zeMNmb50VMbfyxhg9ylp3isLRlhX+3h/XYHMDQ6dj2OObc9gakK40j7tSy3YfXYuIzfcjHzaO5abSj5nNwXPuoE5aPg5rTpDbUbHhYx68++QzJOp6PWY0ikFteDlFDgWxNsz+1CzYQAX6tlhRzKjXOfIfDJ6Df0fIJMwHW3/VRjFmdSKSLaKfoItnkRa7ZRopGjz18G6AYHnROU5JQMS7UTlEMUm56zd9b7WstweFaPSvZbHUnZpOj7foZMF7lHTS7qlvhJ3CaLI2WD9hgTmm+k2ZR7tXb4IK9iD2VMQCuwiLVY= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 640b64f5-dbec-46fd-9dae-08d6bcdb9285 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2019 11:07:36.4546 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1403 X-OriginatorOrg: microchip.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190409_040742_847518_83E44176 X-CRM114-Status: GOOD ( 13.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Eugen.Hristev@microchip.com, ksloat@aampglobal.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
media: atmel: atmel-isc: new features
|
expand
|
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c index 48652c0..8d8cce5 100644 --- a/drivers/media/platform/atmel/atmel-isc.c +++ b/drivers/media/platform/atmel/atmel-isc.c @@ -2408,8 +2408,11 @@ static int isc_parse_dt(struct device *dev, struct isc_device *isc) break; } - subdev_entity->asd = devm_kzalloc(dev, - sizeof(*subdev_entity->asd), GFP_KERNEL); + /* asd will be freed by the subsystem once it's added to the + * notifier list + */ + subdev_entity->asd = kzalloc(sizeof(*subdev_entity->asd), + GFP_KERNEL); if (!subdev_entity->asd) { of_node_put(rem); ret = -ENOMEM; @@ -2553,6 +2556,7 @@ static int atmel_isc_probe(struct platform_device *pdev) subdev_entity->asd); if (ret) { fwnode_handle_put(subdev_entity->asd->match.fwnode); + kfree(subdev_entity->asd); goto cleanup_subdev; }