Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3957167imj; Tue, 12 Feb 2019 07:30:03 -0800 (PST) X-Google-Smtp-Source: AHgI3IZb2Oz6nctlCu0Ua+xvQ+wSRMC6hsptLfaHN2H/InmfelqZ2fNd44iZLF+rw7k2Fc31ESHx X-Received: by 2002:a17:902:8504:: with SMTP id bj4mr4468608plb.200.1549985403653; Tue, 12 Feb 2019 07:30:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549985403; cv=none; d=google.com; s=arc-20160816; b=wknyWqHt4yie9JFxgA9zUgt8dXILIK3WSMV5Cz/+rW3g3wSXxBFWMIvgRbI8ZpKQZl ylf+Up+yWqphDuBFmpZMMHnNimVCsTC4nKqGj1tyNKPg5EDMBsVM7oI9Q4m3293nFB8z uKDW2VlVk38SynnMClCerRZQ5o5Z2jUZyEbPJm8jfpe0UQYupDLHKMK42okmo6vhql1y kwJoZ+6wrENBF98aymYrbWywu9HXPo8KzxtZTtVdCu2kiUOddLlWhI0BiiEJTXv7szF6 TbFx7Fin8J4IzjGzy6LYX7Osyr142klK9aCFgSoHmeclKdH0aE9IKk8G2pMbdLiDr2EX ahvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from; bh=WjuGm8F6dC8AkJF7FinpadW+h0gVVRcWjjBVtXS8l7k=; b=n5mZtZMP9juBMQLmJqVvrVsg2Q5RniEYt+e7VXlSJJBK+mmLDo2i1cpZo1W2Sk2sbI F7NIMENrA3BTTOjfAwARpeN1R/LjoxneTo6yumkDfEdKkNs/7LKx+i5hFe0zVbsW11FS XrXog7L9GBjD4f5tTSQWaAqEPGbTBw/9uXK1NcLID8IGHFGGB4/4TnOYV1MRKhmvyJ/4 eduNQ4GFd5ySJ7TTm4Xa1BbbqTqXqysfoVF4qek3/VPL2lWdA/THgoV2UO1we3fIqY29 SxepvgiZnZ+2YqTnKPaZIPxzWBw7tkH7z01KJ9orhE8O3AgB+7wgwjHZaqNp/sDE9/Lp cbjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 36si14967331plc.250.2019.02.12.07.29.46; Tue, 12 Feb 2019 07:30:03 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730563AbfBLP2g (ORCPT + 99 others); Tue, 12 Feb 2019 10:28:36 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:47492 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727248AbfBLP2g (ORCPT ); Tue, 12 Feb 2019 10:28:36 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1CFGUqq031812; Tue, 12 Feb 2019 16:28:25 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2qjfy65khf-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 12 Feb 2019 16:28:25 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C6C0F38; Tue, 12 Feb 2019 15:28:23 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag3node3.st.com [10.75.127.9]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4DF4A5470; Tue, 12 Feb 2019 15:28:23 +0000 (GMT) Received: from SFHDAG4NODE2.st.com (10.75.127.11) by SFHDAG3NODE3.st.com (10.75.127.9) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 12 Feb 2019 16:28:22 +0100 Received: from SFHDAG4NODE2.st.com ([fe80::4457:45af:aece:883f]) by SFHDAG4NODE2.st.com ([fe80::4457:45af:aece:883f%20]) with mapi id 15.00.1347.000; Tue, 12 Feb 2019 16:28:22 +0100 From: Gabriel FERNANDEZ To: Michael Turquette , Stephen Boyd , Maxime Coquelin , "Alexandre TORGUE" CC: "linux-clk@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] Input: st-keyscan - fix potential zalloc NULL dereference Thread-Topic: [PATCH] Input: st-keyscan - fix potential zalloc NULL dereference Thread-Index: AQHUwucSbnUyh3E18kKgOKwxl5Aux6XcOJsA Date: Tue, 12 Feb 2019 15:28:22 +0000 Message-ID: References: <20190212152429.1936-1-gabriel.fernandez@st.com> In-Reply-To: <20190212152429.1936-1-gabriel.fernandez@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.51] Content-Type: text/plain; charset="utf-8" Content-ID: <07234B400B9A124689DEB41218527AA9@st.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-12_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence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