Message ID | 1477413083-9159-1-git-send-email-tthayer@opensource.altera.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-gpio-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3t3Jng652wz9vFg for <incoming@patchwork.ozlabs.org>; Wed, 26 Oct 2016 03:41:27 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=altera.onmicrosoft.com header.i=@altera.onmicrosoft.com header.b=j9Ee6TcT; dkim=fail reason="signature verification failed" (1024-bit key) header.d=altera.onmicrosoft.com header.i=@altera.onmicrosoft.com header.b=SDvI0kQm; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965306AbcJYQlJ (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Tue, 25 Oct 2016 12:41:09 -0400 Received: from mail-cys01nam02on0058.outbound.protection.outlook.com ([104.47.37.58]:62229 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S936501AbcJYQlI (ORCPT <rfc822;linux-gpio@vger.kernel.org>); Tue, 25 Oct 2016 12:41:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=f4IXMqK+hUF134YjaOzgWatBOy104Km6obEstStk+6A=; b=j9Ee6TcTNKZ4MPE1hiK/ozFQoW/k0taPBSMl4N8W4Qrz/kYuDIgN0539NvF+KE1tfz8nCc41waOwdQNkwTwOm+npAzK7H9+ghA4CCgJTiJr+m+pgleng7464cJRDWeDNnd/T/i5M/uidBeacrTyv5WkbTaK043SRPqXkYSS+2t0= Received: from DM2PR03CA0028.namprd03.prod.outlook.com (10.141.96.27) by BL2PR03MB273.namprd03.prod.outlook.com (10.255.231.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.669.16; Tue, 25 Oct 2016 16:25:14 +0000 Received: from BN1BFFO11FD004.protection.gbl (2a01:111:f400:7c10::1:136) by DM2PR03CA0028.outlook.office365.com (2a01:111:e400:2428::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Tue, 25 Oct 2016 16:25:13 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.236) smtp.mailfrom=opensource.altera.com; vger.kernel.org; dkim=fail (signature did not verify) header.d=altera.onmicrosoft.com; vger.kernel.org; dmarc=none action=none header.from=opensource.altera.com; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.236 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.236; helo=sj-itexedge04.altera.priv.altera.com; Received: from sj-itexedge04.altera.priv.altera.com (66.35.236.236) by BN1BFFO11FD004.mail.protection.outlook.com (10.58.144.67) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.679.5 via Frontend Transport; Tue, 25 Oct 2016 16:25:12 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (216.32.180.15) by webmail.altera.com (66.35.236.236) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 25 Oct 2016 09:24:56 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=altera.onmicrosoft.com; s=selector1-opensource-altera-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=f4IXMqK+hUF134YjaOzgWatBOy104Km6obEstStk+6A=; b=SDvI0kQmdkTjBZ6wjtuAl+1rKVLKep4fY6/VDiqtAS2C6nJ0+K0QI8lYufdYqr4WmIbrSzvz2KICWg8IR1vC4qi/gpqUFqAcfkM26owO4uE84KTC/GHkm3QZ0k3nsQI55O/H81GzFSXnFueNhFx1KcFQxfJ7fdsA0QUBSdUBWjg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=tthayer@opensource.altera.com; Received: from tthayer-HP-Z620-Ubuntu.altera.com (64.129.157.38) by BN3PR03MB1399.namprd03.prod.outlook.com (10.163.34.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Tue, 25 Oct 2016 16:25:08 +0000 From: <tthayer@opensource.altera.com> To: <linus.walleij@linaro.org>, <gnurou@gmail.com>, <mika.westerberg@linux.intel.com> CC: <linux-gpio@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <tthayer@opensource.altera.com> Subject: [PATCH] gpio: gpiolib-devprop: Check chip->parent pointer before dereferencing Date: Tue, 25 Oct 2016 11:31:23 -0500 Message-ID: <1477413083-9159-1-git-send-email-tthayer@opensource.altera.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR01CA058.prod.exchangelabs.com (10.160.23.48) To BN3PR03MB1399.namprd03.prod.outlook.com (10.163.34.18) X-MS-Office365-Filtering-Correlation-Id: c32852b8-7008-40d2-7bd9-08d3fcf37f17 X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1399; 2:U5IoPrKRIVxpgxuME3B0U1qA4WOAKLm+xN/Fz8RXm8db7O85NefFHiK0/61DFKzlJe7HJvw0YRGQHhi8NUivvLzBb/w5z2zaTyjfB9Lguwv1tbEihkob1/FJcuZ2kyXOSLdMcRabT28KDRN9c0D8nChTZl8Ii9Nhe2NlWQCfF/QwwIfP6IRdZbFppciYetkIuW7DOUoe+5fHnB5J5Yhy+w==; 3:d5Bh8Nh7CAYde/gb7ra4AF8iwvpuM2TGz4w4yGxHQ72oeY7XWvKmPgNRFanFFjE/UDxMkRan5qkVWY1gWHNwkZHtKWidmmnueYHeqlUg5lmQAT5CJojZ76txzQ62J55dlI1dKywliqayd1WFTldV6w== X-Microsoft-Antispam-Untrusted: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1399; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1399; 25:4sMiZ3B5N5L84CWKx9WS29mnE7rgUJPEtgOZzoXwgk4rld1keS/lexnqrpzEXdi1Yfk1C+P6zC5qbgeGUs1+ggBQMrzoXKTupFd2f2ZDTguzKBO1W59lI3Oj7Fl42NcITdRrC3290GpQBj0TIx0xk9kGggbeNaPavOg1qYplGpAVgrQT9gv7p3FdQlbpF/UxRQc+g+OYFzz2dPjDdPLh1GNH/7rr/YfqgGpFlggHusoqIUTEXCp0szKLPz1srW/CVin+0X84emigBCJA8Yq0rlN3FUkRlXfReFAZzkwLW6a9GRax0okAThJqLzSwBdKmx4h5JXJNx7Pr07DKk+6VWsQ1WuP+Zf+cry3scIQJgZ1eKfVIheC0e2JN2oCpP6asBu41ux4QY33Z+pgHsJ+OeWkZnwBJ1dEXra5wjX+jRgq5Z4D6qW+RVLgeXsn/ZXqLimc7OX8iYMpS31iwXXNs91SMuRAXKS3LnqrSB9df1qgSyG87yxUw975L8tdrG8+Jil10v8/0cI3h9ustRBxI3PeSnl3HUz6CrozLJygOnUjk2GWjF/EETST5qgsexjyOWadSPH4ZPT7gkQfCKdPakMCsK+ImWUavsuaS8O0GZclFGYKy6ErgQtKoNZg/9CdzoiMJCc6MRN4oLoZ2UFYas21SV+UIkxmz6z49fBGdJwb0DjSVJRzt7N1XBh+JPQMZ0ttSv9Lyplbjq3/PVSPl3aaxDVttnF/BaXCbq72FkwSIncVL6PYEmMOBu8EcDo0TBeQWEoLHibAAoQP79gal7UNByDfercWV2qRDDm97DRg= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1399; 31:ucnIdUu1SsequVOueRTbcbS3g8LBurBHiOOIx0850qG41XF3x0xXgYk2CyrRxRrYq547vG88k94u88eEDb5juFlskl1ISjr5j+Bgx40a+ZDQJs4D4We/ezcHCz8SkAkESJFSsiFAByIXx/LUvCc9ut8uz7KiUhl3Zgg15BpAa1KJpj4dFq8Oe4JtDhxt/j967GNKzQfpDKx1HjL8eWGqwa+dtQU6HPvAckoTqFz8cmq+/RYcS1PJMXk2VWLqu4zNAuhHDlGJQlcxgSOkZgl3BmNkKsckX2UMmPgZzhigRPwRZy0MYmz0IKWYphydrk6N; 20:1sO9JFo0sZHmfMHLIQCQzka4XigDJa6GMHSMW8FPz5I+/jV5lhrTmhZRlNQanYLZc03wxHyCmyvA90CNp8R1mRpMSzCEx4C7lCQ9AlhmQqE+l8WUn9L8D+PEE8jzKkTJVWCtBGvbhSo8IAqDqDkW33QJS2a8PJ0uXVNGRq2BsaA= X-Microsoft-Antispam-PRVS: <BL2PR03MB273C00AC3363D3F5E390511FAA80@BL2PR03MB273.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(80048183373757); UriScan:(80048183373757); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6072058); SRVR:BN3PR03MB1399; BCL:0; PCL:0; RULEID:; SRVR:BN3PR03MB1399; BCL:0; PCL:0; RULEID:(6045049)(6040176)(6060202)(601004)(2401047)(5005006)(13018025)(13024025)(13023025)(13015025)(13017025)(8121501046)(10201501046)(3002001)(6055026)(6046049)(6072058); SRVR:BL2PR03MB273; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB273; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1399; 4:Ta9HE3N05T+8ALM6XnbE88tj/CfnJy+kGyg4fQuet0SpoL2xRkbG39n0mOTdZ15m7iBX+eqQpQuM/oX6iVzUP3UFLZ82NLJ9GCsexpDOtCrJk0oGoR8NlXGvEpNbpyNWtXnZUWHAsUVpuqyBmFFwrMNiZWA90w8uwklwY1RmtWNMOArRh1E3orAE8F6Z/kBH10m4bJ+3jZsrWXh4LPDgxC9mIZH0BWLgBXlaTSSKnfhBOOnwb3vQ/YFViXJj7OdUUTnYMNkRrdo388OBnqomzBDfOhwAvA0+uIhZOmnz6tyxrGPUX8UIbAsEbeyCNAv/kx3IHB0IMiF8x3qXzHvWERaI4ZSm+UTp+jg9ArWF1126qvdg7/4l04zdwbi32VY/tF22A46GkG73QtU2XEWa8xz0IeGcnX79Nqu5ZFty1i3bi94SD/EJPW3igWIisJQ7XHikbbhb4kF5Npk4bEo8Jd857b7KF3gB+A3FGUIeVZg= X-Forefront-PRVS: 01068D0A20 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(19580405001)(19580395003)(68736007)(85782001)(47776003)(8676002)(66066001)(77096005)(97736004)(7846002)(7736002)(81156014)(107886002)(33646002)(69596002)(81166006)(86362001)(5003940100001)(6666003)(50226002)(305945005)(2906002)(92566002)(3846002)(586003)(229853001)(53416004)(189998001)(105586002)(42186005)(106356001)(110136003)(50466002)(101416001)(50986999)(6116002)(4001430100002)(5660300001)(48376002)(42882006)(85772001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB1399; H:tthayer-HP-Z620-Ubuntu.altera.com; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: opensource.altera.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics-untrusted: =?us-ascii?Q?1; BN3PR03MB1399; 23:Wpmp0KsDpjEe9iw6+CrDLhXhtoS3qy3bB72l+L3Fu?= =?us-ascii?Q?f4yK56VQ4jBWJG1AV2zgfZu3aKcWFtHfIse00QLoCfXe643PKmCubXCwh7d4?= =?us-ascii?Q?YRVx2Am6oH5a68/syUHRj6415nuXfuOpXb+8NpW4nPlXPfKtNA6GtE542nFO?= =?us-ascii?Q?Qoibvyjqg0IP/T/7xrXkJUlyLnkHTgF7HT1RK61aq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Q7XMXKHzXAMmW8HneTSPtQhhmEzyGaowxHyf+fU81sSwZn/9?= =?us-ascii?Q?L7QlFSeJQ3tx1H28sBIajJ4/OI8tcp8?= X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1399; 6:AKFhgX4RnRcDJf6aGsu9w0rl02S+f8QKF0VJkzYjLJJ7AAZKaalR0cdHNpWZ9JTayxQGx4JbWDzfrpa7GBSrQ39tshF58VN2yGgLhihc8YxGnHjVvsCKttUirUtFjJOM3/9ciMLkJFLHjrv/3zuaJE7QS4FoVJXEzMPHNpDpL5URf0VM6lr73sCHg6LJUKLhhN1gY6AGKKkmWYlMA78cfSvjwia80cKcKaNelnpK70sAJfz0Wi9Jj7M5Y56IiJFgor4FXJkxIzhhhQ997qKMW3N3TXy9Rj9bFKWA1+MovCmnylCJ1Pp48iHeAyq/MtIs+SUWWbwvqafSapLjTvBWeTFMxP8inGcKN4RnV4kBkeY=; 5:KjariCaCkz20DZTNfMJTwQgjDlAUyJLvs4A8f7zUIUEUPrf1IYFc8B4XLosPhKslLcWdVAoZMc2bBXoytZ6Jlc6rUYQS2vSLWcGccdatrH4iexvdrhm3C0mHxwLU0XEscFwvhVpjKuMb+sORwqSDfA==; 24:+YCYXMA2e3AT4wcNCFKmSE5c8LAGaiLzyE0GtwvMa9RMENWVHbF6wm6wxIli6Ztb88H3TrhJRDGntfxWqTnItw/8hGWKqbB+HdiJyjRzQ70= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics-untrusted: 1; BN3PR03MB1399; 7:zs41USiT5fwRYqfO9zLIYCXBXYKfqYqgbm4SFnkBFdQckcJu5mcCtt/KC7/uKboNAaClOC5Sx3vTlGJRL2tmy5MIGHeHhjFbrfYUtqZ2l+g5EsEqF9ync3dLzKGFVNVsAEZtX1OZ94vNkQsRDUdIymZf4s9DT0/ybXbisom/MthvfVsoqvSPglkyrXFI56UYFX0OFFM1zYW/Bn04AGD7axhHIP1vNu3tiFsjMGLyLib3KU/vUzUCT3mdI456TWQpOMNLy0dwX0fDPqs5wC08nsCiigm6wiG6kOD3GWqh8FNWzB+pRuxoXRDcMsOB5st7+14lIZl/UBovDtnxXek9RHRPIvoGqWXtjFQv54gow0Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB1399 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:66.35.236.236; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(107886002)(86362001)(3720700001)(2876002)(189998001)(5001770100001)(6070500001)(19580395003)(8936002)(81156014)(92566002)(8676002)(3846002)(81166006)(42882006)(6666003)(7846002)(7736002)(305945005)(626004)(336002)(85426001)(356003)(97736004)(68736007)(4001430100002)(5660300001)(77096005)(86152002)(105606002)(53416004)(4326007)(48376002)(50986999)(87936001)(2201001)(33646002)(50226002)(586003)(19580405001)(6116002)(106466001)(66066001)(50466002)(47776003)(5003940100001)(2906002)(229853001)(956001)(7099028); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB273; H:sj-itexedge04.altera.priv.altera.com; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:0; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD004; 1:b3xWfSriOgN6Z1o8EjVuxnj78HRszuJgWIIWmJJlqVEp5s9B3mm4qY55pTTl5h8XGL4yLFqD8amkWKn7M1FhpFp3Cu+asBQQeBffbQhLJA4zDqIMYxgfqFu+4e6R33/alexsTPAQRL+1mOozKIliC7tOpScOKeXFUgEvcjIy2E272nlu13sFDNfgO9kv5doQGo3502FP9l3BQPlZ6N2alEwZhUpJgSwhPcqkXX+g+QtPV7Y0NOJRDDShCH1APSAlZ2JqRIS9ln7LzFvsDbuJIHBK24BprU7Jj18PkGcQsH0J7a7QxPZC6SdfjzEcmQi0zDZI+tQrKSJpnq4cDEwPQtb+Y5te5zoemVBgH4uWfGJf3ekjdGPmIHwg1aM+90m+PlVZObySVPWWGIAyjdEsOSkR0zUYnpPX6sYqHx5EI+A/4vZBkE3rn4SyrRgacLM5Zr7acUmcz+fsbbOkhn57N4qL2VYGho+3VG690HhEjSujFp3ukk08dF9Wexy/WqoWTwvAc0aFL+NcVwCPOBDTqnGW302m3xI7lzad44kDcjkkUwQoznmkm+WyaF1Lrx4grRzZp+76ClEdK6phdMu4eCUfwWMOHWYfaIw6zqcIrSQf34Gkp3Xuwo1HRJccG8Uk X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD004.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB273; 2:MH9DpOzw+CUZpDzL5iocjl+hIkbGxr6V+sV78RZ8Dkb4/9f8ORjYtMUup/xnLWg6fMwyhNzWgVGPfKg40LlbMnNm1EUDArgmI6IiNzVHnoipkflnyLZaUB87x8/c0XNR5TBjgTZWKPLr42Q53y7JBjJWqTqDgeniHJ0XBgonnRlaHTlEGX2fgzqyqwQcI1wEWM8GZo+jBnhlNRSmTxCM3w==; 3:IPWSsi4nwSCH5tMyEorMPurGHFFDMZ0L9ZIkmyXVpII0YlfEiBbUGfiD5547pQqiISRoKOfFVySNyd00xTTgHRPy8vbVrAKV4IiD0Sglu5jmy26RK3TxcAeA7kQeYE8YXUe4t3Idv6GZaUEf/4lyJVmkKsUBoTuWOJWMV1ZKKycuDFeSVr1y7S0XHSlJLy58XkR2eJzoG/3TxM5a7yKySvY6+2fLJA4sGNpRssxExACDtmxuFVsWiGbW0zASiXZ6dNfCmLCurj0KLx01EaprVw==; 25:BkYk2nPaAOzXf1EeIRKI5Dz0JxVyirLc6BBy2eSeg98Vum0zdSdGt9xLOw4sG0ENnNWF7vT1G2i5Nsh2K15/RHK0Zxv/Z7m3TVB5P8JG11h6B5TbaDy4fPKMNXt2c7vfblzrOj741yL+yUax69RrZQh0MpafyR7PoAk3xbrBvmr87u0LMhLIVN31vuzvMYdETFe6qJNmseZq+QPjaUsmUgLI2lqoSFFllMeyS1d2bzyKprc3xHwgaGX/DsfLuwmtdXMLtKyYQNtYIYNT7vW1aPrYEbgJQBfXUqjit67OgdD6Gl+NKG9IpcHrKyHexASfeXl67u7HDwl+V5iuyfMZY8jvMTStzsmM0EOEkNQQqwYwMLB5x8W0dPW+A6eAPLz3cwif1pcKC8DBSpje3PQvTbjU4ZSB4G4keE/+BEXHaBCKHC8FzW8rw5Hd8xHHohsgYbamx0xmMue8ZmMlfJpYAA== X-DkimResult-Test: Failed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(3002016); SRVR:BL2PR03MB273; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB273; 31:sPwn3SJzdHr4mnDIrvceYDSRyngPDL0dDPSluD1Gh9oDP6XW9Ng3qWbheGS6sB+6XEBIZn81liTvIfadfQ6s/6Rawx94WQjLWkb20kjto5A4ot/qCCw1SUTNs7Vx9zSPXizE9L8zBvI95AII0dnfvrlJOuRtoDisgd1gftgpsEPj3ql3oqxQAq8LAfvN3bpHPEd6910TG9uJl213xh8VKKUhs+wtzgsS73FNwFuQypdv7DY4mYKOKSxyWa9JhPT78bySyDK6CbvuHgtFFU0Ebg==; 20:5hFRAyAwe+TEgHAKEtpmFZqdnbFOo3g8EzWkHWJGu2p/VdmFdZz3/0X+0ThNKpPNKVC7lK+9E+uyNsKC06+l3dK0mzBLNrmqX38ApNzT/n5da/I50y6YX4SjXG4IBFoVGPi1qRK2UJ1eZew/9MF4mZfMMVeTAdDUDS+r6/GLo7c= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB273; 4:Q7bBb10AZmf+ViHeBSxC5n3uy0WHAmalTU6dinbUOrSIZB8AlZSlCY4qJiKSSREX8fptSpBaIvWNb/n+RX/N+SvNMb+D0tG6TFt/3opc9t/vOrisRoSXX6dfF8i9tlD2f1/id7eIkhRwxFjlpTK1PtUzr32F62wHxwxzd2Akxxg03tRxqY23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JCZoZVy9IQz+Xqp4+v+Za0rdTe6MytqfKOM4bG6Mt2PoTQP/uC7m9fJaZQ2FHDzaigcg== X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2016 16:25:12.5437 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.236]; Helo=[sj-itexedge04.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB273 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: <linux-gpio.vger.kernel.org> X-Mailing-List: linux-gpio@vger.kernel.org |
On Tue, Oct 25, 2016 at 6:31 PM, <tthayer@opensource.altera.com> wrote: > From: Thor Thayer <tthayer@opensource.altera.com> > > Confirm the chip->parent is valid before dereferencing because > the parent parameter is optional. > > Signed-off-by: Thor Thayer <tthayer@opensource.altera.com> I wish it wasn't. Not much to do about though. Patch applied. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpio/gpiolib-devprop.c b/drivers/gpio/gpiolib-devprop.c index 17bfc41..27f383b 100644 --- a/drivers/gpio/gpiolib-devprop.c +++ b/drivers/gpio/gpiolib-devprop.c @@ -31,6 +31,11 @@ void devprop_gpiochip_set_names(struct gpio_chip *chip) const char **names; int ret, i; + if (!chip->parent) { + dev_warn(&gdev->dev, "GPIO chip parent is NULL\n"); + return; + } + ret = device_property_read_string_array(chip->parent, "gpio-line-names", NULL, 0); if (ret < 0)