Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751833AbdGHVAv (ORCPT ); Sat, 8 Jul 2017 17:00:51 -0400 Received: from mail-eopbgr20104.outbound.protection.outlook.com ([40.107.2.104]:59968 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750952AbdGHVAt (ORCPT ); Sat, 8 Jul 2017 17:00:49 -0400 Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=axentia.se; Subject: Re: [PATCH v2 1/1] mux: mux-core: Add NULL check for dev->of_node To: sathyanarayanan.kuppuswamy@linux.intel.com Cc: linux-kernel@vger.kernel.org, sathyaosid@gmail.com References: From: Peter Rosin Organization: Axentia Technologies AB Message-ID: Date: Sat, 8 Jul 2017 23:00:39 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR0502CA0004.eurprd05.prod.outlook.com (2603:10a6:3:e3::14) To DB6PR0202MB2549.eurprd02.prod.outlook.com (2603:10a6:4:1b::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d40270f-2a2a-4cf2-e162-08d4c64466ed X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DB6PR0202MB2549; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0202MB2549;3:NUxLwz8zlONTxXw2HYjObFLwqDU0xt6H+otm57mWk+m9eycS9FqlaRTND6abBfvQYIzCGGQEx6CpiEHyka9biRPQxg6F5LyK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5tdKG+yREpseFhm1T5SS8x8cRce9C82j/BVTucjWT2jVAJywOlh8IFoY8yvh4OSqejTJeDCGR/HuEK4BSXf/qabKMXfsKYMzhyHTZTkST4z5L7QDW6fzKA3CkPxmSXTkBCOt/ifrZoNO+vZBPFL390phO/EOiCjRiMUGbUchy7NOjJXNriTVvLhWWh/go+IWg69OWpTJdm0S7gNjw5njwWbpYGRX9l+N3mzrbhjMgoM27tFuE07sEsW+jw8uiwy75ruAw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(148574349560750)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123560025)(2016111802025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DB6PR0202MB2549;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB6PR0202MB2549; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDJNQjI1NDk7NDptU0RoK3p3djZxVXFIZ09Zc3VRNGVtYy9r?= =?utf-8?B?WERVcWRGUjcvRlZyd1BtMEJtbEtlVXkzSWs3SWZjZ25Xbkt1SVFWa2VPb1dL?= =?utf-8?B?TGJ0a3Z3RlFiWDUvTGI0R3dUWGhNVThRaVh5RTlHWWlCYWV1Wm0yU050WHlk?= =?utf-8?B?YUhGVkowditTRDJ4YUhtei8zNExjMWhPY0pHcnBDWTNsUElFTVpBTlRsUXFD?= =?utf-8?B?YVkvWVN3eWF0NXV3MXhleDNabW1UTURUb0FCOEVBc0Z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Nzd2SElkS2xDNmMycjZ5ckNRZXFBQnZtZ3l5di90ektX?= =?utf-8?B?SVF0dytOY2N1OHVBRkl6TXFRa3RvMzlpbDkyY1dJMkxId0RSZnFEcms0cGFR?= =?utf-8?B?RXVMeUg5TXBBNjUybngwM0pOL0JVelBFZG4rQlFrK1Y1OEh0Y3M4bzgzR2Qr?= =?utf-8?B?ekZvWFNCZEo0SXBMR3gxNlAvVXlvY3U0WFV2MzRXaEUrWTdtR2x6MGtJT1ho?= =?utf-8?B?L3dHUEs5bmdkRGt2R2NpeUNUNFhZSzRFRFFkUjJtODRHY1U5QStiY2dlcHRU?= =?utf-8?B?WXoxR3ZvSVl5cjRlZE1kbXlTUW9PN2ZDOU5RVlkwK0Y3RDVSUk9qcXNKdVhu?= =?utf-8?B?bFdZdytrRVBCMGx3VTBCdWFpblVlalF1eXpZeTVGTGo0NEMzRTJPSkgvckVQ?= =?utf-8?B?NTB6aTZYTDlNek5aVnlXd3NXUVE4R2FTd2E2S3A5U3ljZ0YvTDVBcDdjamI0?= =?utf-8?B?NWozdUN6Zlo4WXhLa1RRd0RReXk2emE0TEdYaHU4MHQ2dlhHOW5yOURnQnhq?= =?utf-8?B?TjJtN3R0Q2ViQ25lNnF2U1dUVm0wVnVMQkhSTVJTVElha1hJc1VsTW9SSjEz?= =?utf-8?B?ZnR4dnV4VE16SFBidTAyYVJWRHBkeXJkK3c5cDlrL2h5Rmp5SldvRlpoMi9n?= =?utf-8?Q?43DJIb4CQI49cO?= X-Forefront-PRVS: 0362BF9FDB X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(7370300001)(6009001)(6049001)(39450400003)(39830400002)(39400400002)(39410400002)(377424004)(24454002)(478600001)(33646002)(2361001)(36756003)(47776003)(74482002)(42186005)(2351001)(66066001)(230700001)(110136004)(6246003)(31686004)(38730400002)(53936002)(117156002)(189998001)(7736002)(53546010)(2906002)(81166006)(4326008)(8676002)(25786009)(3846002)(6116002)(5660300001)(77096006)(305945005)(50466002)(4001350100001)(65826007)(64126003)(6916009)(50986999)(23676002)(76176999)(86362001)(83506001)(54356999)(31696002)(6666003)(7350300001)(2950100002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DB6PR0202MB2549;H:[192.168.13.3];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDJNQjI1NDk7MjM6K2haK1pDU2J5U1VFNHlRQk1NTHZwNG83?= =?utf-8?B?c2ZCVnRmbzVWb0F2bElQM2lPNXJXemhhdk02bE85cXA5MExQOEx2dlZyOFFn?= =?utf-8?B?dUFnYjhBeEk3YzBtUmdkM1YxcE9BYklFWEhTcnhoRjlMVG90Tk9McWFWbnhy?= =?utf-8?B?OXRCRXZKZC9qNUNobEtVMERiSld6STdkeWpPcGlrU1ZKWEh1TE1mQkhYTDFa?= =?utf-8?B?MW9tZndiWHQ2bDJ6Zmg5UmhYK0JPalNUODhsSkV2bmVtQmtOWmpFTVRjZXQ5?= =?utf-8?B?bEtVU3RsRCsxOUg2QUNyMHB0ZEpBc2RHQURaMDVoWGxJdUhrbGVpeDJmOWVL?= =?utf-8?B?bnRjU003Qk9PNUhEbkNqa0I5d29VRWpvTHI3REUwaHhDMGNNd0FpV3ZHV29t?= =?utf-8?B?MDRXR3NnWHpZYXpUQkFIdHZYSkNIeTY4UzVEVnpLRzZDTFdhWlVoNTUzZUtB?= =?utf-8?B?SUlRWFR3aTNrTWxWWXYvbTgrSDJUZ3dzendGS0pxemFnUitTaVk1dzl4ZVll?= =?utf-8?B?R0NjVk9iYXdTMjROYVAydmJpYzZWNWxwbnpCaW1XL3NpczFncDhrUENsdnh4?= =?utf-8?B?RzNYRHpQMVYvZmw3UmhNMDhBNmszYndvWlJrR1p3QzBTNmppN2JXUWc2NGU4?= =?utf-8?B?TnE5bVF2K0ZTU0FQbXFBQi8yUVNnMXAwaVhYVXZjRDhnb1FHTjhtUmNpc3Rh?= =?utf-8?B?Qm1kS3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bpkqPJea1K3uhx0flcis0HTJUKCM/zSIPTdFd2NXryf1e643uTf5XnKU2jcjCJghq+yiWsRvD39f/q/dslzY1q8cmGcE9omFT/VYhUa/8U6EbAE7rP2NG3nsnL5t324ZPEl/RcFujdDPl6zcT+ETMtkwfYkjaLacpbRM4ahBBEtubbTr2ozIGLpwf92y5TdwCgBTKpyHBN5KY+aBIIUUEYAUsDaN5M5m2F6sCL4lPZz2UiLDXLZc6cXG+kdjpQRZp/FRvvUXJhod6s6pPH4FTpluWnBFdAxmf+zyYzCZA= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2017 21:00:44.7555 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0202MB2549 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 37 On 2017-07-07 23:46, sathyanarayanan.kuppuswamy@linux.intel.com wrote: > From: Kuppuswamy Sathyanarayanan > > If dev->of_node is NULL, then calling mux_control_get() > function can lead to NULL pointer exception. So adding > a NULL check for dev->of_node. > > Signed-off-by: Kuppuswamy Sathyanarayanan Do you have a driver that might call mux_control_get and not have any of_node? If not, I don't see the point of this check. Cheers, peda > --- > drivers/mux/mux-core.c | 3 +++ > 1 file changed, 3 insertions(+) > > Changes since v1: > * Removed dummy new line. > > diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c > index 90b8995..924c983 100644 > --- a/drivers/mux/mux-core.c > +++ b/drivers/mux/mux-core.c > @@ -438,6 +438,9 @@ struct mux_control *mux_control_get(struct device *dev, const char *mux_name) > int index = 0; > int ret; > > + if (!np) > + return ERR_PTR(-ENODEV); > + > if (mux_name) { > index = of_property_match_string(np, "mux-control-names", > mux_name); >