Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752998AbdFVIZb (ORCPT ); Thu, 22 Jun 2017 04:25:31 -0400 Received: from mail-co1nam03on0088.outbound.protection.outlook.com ([104.47.40.88]:4827 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752935AbdFVIZY (ORCPT ); Thu, 22 Jun 2017 04:25:24 -0400 Authentication-Results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=quantenna.com; Date: Thu, 22 Jun 2017 11:24:58 +0300 From: Sergey Matyukevich To: Dan Carpenter Cc: Colin King , Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , "David S . Miller" , Bindu Therthala , Kamlesh Rath , Sergei Maksimenko , Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][net-next] qtnfmac: fix uninitialized return code in ret Message-ID: <20170622082434.nvwja6onp46vwjce@bars> Mail-Followup-To: Dan Carpenter , Colin King , Igor Mitsyanko , Avinash Patil , Sergey Matyukevich , Kalle Valo , "David S . Miller" , Bindu Therthala , Kamlesh Rath , Sergei Maksimenko , Johannes Berg , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20170621132530.11937-1-colin.king@canonical.com> <20170622051041.6vclukrzlq4zbdhm@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170622051041.6vclukrzlq4zbdhm@mwanda> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [195.182.157.76] X-ClientProxiedBy: HK2PR02CA0058.apcprd02.prod.outlook.com (10.165.70.26) To BY2PR05MB1927.namprd05.prod.outlook.com (10.163.32.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 29f5e064-907e-4a7f-eafa-08d4b9483911 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BY2PR05MB1927; X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;3:oGnqcUSqT5ZQJBNToBDKCKpHUCNmLkUmLJAQgjo01hRtR7UTb/HlCXyNyo42QBQ7/muPgIoDHAt5ozNFBJfoRvfOxqx0JemOzw1YGhbx+UwZEFMgVf5QISz+P9p2FkiwI0C1qbePGjGQU3rQ9fUku9VvwwVN7uIZZyn1EveTEInGteXmWETR+A9vmU52nYxVrk96nXHj3ogKj7MlWVX/aeL+A7KY5FWiynmebgjW6nzx4GzN1NFGc7amvZXd3miXii7MrQG63EntlR+A8x3h1Jc7h/IOfKXtJcaVKVYQ13q8+Eft7bwEjyj+5doOI2QbZWvYhZmLsEqFPVXvDBBo+Q==;25:MPF58qx1YNFl02dc9gZCaa9r4NEyu5QmvUbwgfOhTM/YumoyrrCZX+MnLAIW2Yx5eIJb9CRVM/xu6SNdxM+w9HVEepV4oFNWWrYqPBv5/sz+udV7BOBpZFI+ZdPB2rzdTRaN9/aSYd2SZTCpX/W/8il0Kxm44xkMdYE+sU6BR97QuKoKYp/fKmn1vjaVGkf7Sp9PPxfQRKSzwkhmc3J3rfPajbqq/NT/JYe1xIvAFXYHQZ14Bre+30xQZ5vQIGVpdyG17eOV3Ket9FZDXIrh/VednOntxg7gMT6mgOhgETzdV+IbcbY5KpSKL+guzBEemf/u386gS+CB1Wb8sdrtaA5ILP/O0YazU83jWYA3Z/Hp4U7tsZhKU7ISg2OjUuHR5IgaRHKoNqkYaXzY0nzN36a3JK01Zb/WN8G7ZGNCKk+j5VyQEqtdgLZSmUZBnO64HvnsSm2tFNf3bgzjiaS/MYzXbq7h9/7UcN4R7o5y5cg= X-MS-TrafficTypeDiagnostic: BY2PR05MB1927: X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;31:ok6D913CSfMLn4qqYWh2IHvmGYWCNHGGsPUwJ0PRubsio2+XnhH3mzbBKlWFdn22mcJPFkJMI6uQXoqnmK3zAwauGyBRTZfer1IsbtdXM25LCsdlqdhcuVJjpyXyTlgFbS6BFlSRPHbUAdbFlAOOdYBxKFhfr9QLDyoNGSim3kixEA9gSuWZRTDZZoRffGs75bELTSjFv6ocQUITwrcp9EMYoxzoRiNMGuTe3HKs3LM=;20:6iHrF9H54RWRfkMODcBkABXW0qqRC5eIt5G93cqfwaquz7isnFIhdfHsBZh2xqPzlcYpCIZV7PkKl4+fJcCmc+g44BTHgbHJC2VYG8p9EPQ/tTUSppOobxd/57CdapfmpyJz7iEWCwVOzNk7FovVYUHqh41KWOgiYnw/X5gByiLHVZx3qHME60uU9ZWRoxK0+oRN57pC/ELRGxE6PezjoqRouFFHyjL1ZoPK0Ys9YpjH/P6thCVNoMNuJqPvBZP64bre9NydYCFMAJ5SrMkIPIdhjcRfIW8zjPVw7x9b0uh3f9L3L0jFPiiLOS/IXQca9s+eeM6Eu0STEIzyZ74Pf5Bf8g3eXX6ofQnd9e/eCYzQw1d33GuNApjn3+YfG2rqlpcjUImdi2DHS9aA6zcaERrV+4nJRPYcDxUXTQ/jCV41GztAj55wRvVWRoys7s70O2I9YOrLJls7PWp6HDRDsVjoiC29D1onHFP2V1PN0CnBvWWhQaplZ7EFZv8K4bcG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BY2PR05MB1927;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BY2PR05MB1927; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR05MB1927;4:IZL3L3WDLIWfXJZWWV1e/aC5yfzdEGgVe4C3KGl+PK?= =?us-ascii?Q?rVN6pU4teOmdEK2UPaRMOSnlOlK/VGacQXnT0mjbCvZ6EhdmitfZA01HJoGc?= =?us-ascii?Q?NuIMxTLRz3kpAJfhHZcIfDootghdMAq65ju+dSSBAgdUWWGZDblVvBEnCQ21?= =?us-ascii?Q?iCV7tBJWGCWx+gvsDx6afgCnR22euZboQtNBPL1DNJUGQY+9xtOo7rdbHUvo?= =?us-ascii?Q?MU6ARw72iw+cUR7+8uNz5RgxGrfcQYBf2WR1HB49EkyhKvj9E8vESk0Iw13k?= =?us-ascii?Q?B0Ai9+twUdBV1BThoHyuIio57syZO8DbPO4Thc726dnQ8mU+E+y31hpYtQqP?= =?us-ascii?Q?lsuqkYe6Xn2d4YDMhiZMQUFMNDoThF+t0Z5ga6OuB9G1SCjD8gypQs3sS+UV?= =?us-ascii?Q?9/eDwU1Sc4hkXKsy2XvCGxSe+v0g8yw5sKmolqvdSaUOYA+Cl2GOsMqNJMbT?= =?us-ascii?Q?AIlFDDO+vK7Qz+cXYFqIc7SRglr2Vi2MpHhaKe3OSpqLYsx8kuotB78ohhoG?= =?us-ascii?Q?zDfSWL6IQa2B4egxMncfzHU3SkSTGhAbrYV4xhkE8+9bsCdBufuqO44ZxT38?= =?us-ascii?Q?6o3SHZkuNa7BnoqUp/k6QJaPpZLCe23qMh3T2yipS8qnf/10ZUuwHdxqWziK?= =?us-ascii?Q?Ei6I3iaJtDKeCThCutos0FiRrS3IGUlnyzceUE97i+LLRIhFK7Ob963z3tYF?= =?us-ascii?Q?p0nXJ/iqHJRrLYKVU5hJ7O0NI+lkSZVm3AQx7nljA3/O5jAAfsKT7I9kCY94?= =?us-ascii?Q?9ZiIZXTvIe6nfS+zE9gtaVkoEx5Pnn0H9Hs8hqod42g1rG9qyJjZVTEQHqFo?= =?us-ascii?Q?cZ4rH4dRJipFwU2+gRBJfM36OLs6eF8t96YR98+a3+ZG0cQ06pLXNIPVD96+?= =?us-ascii?Q?T/eMqQhwDlxUV7rlJcm+39/C7iCXa0jRIOjh/5Gxd7ZUXsoQaRizmZMMsNS3?= =?us-ascii?Q?KChWljP12GbRNwxRxhMP1ylt0JRTisZfDmmtH1I63TGvzi4BnnGBuQEYghtg?= =?us-ascii?Q?o51IH7xzQjk+zh0XR7IXNllbZLW0+RG0MQKR+Zyeq++6pVUpUnL/B9d8DiTo?= =?us-ascii?Q?AfkYWao3VHwvrogC8djrA/lX0Sjv7/uak+vj5+THY/zCcEdeb15vqfOn5ly+?= =?us-ascii?Q?IZ7RyghVOnLpkIOdrxa40bzKYYLCLIOaujolU4TG1Q2poYlqV0r4YmGKq1mp?= =?us-ascii?Q?vmRJsuPeZlDkI=3D?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(39830400002)(39450400003)(39400400002)(39410400002)(6916009)(2950100002)(229853002)(305945005)(33646002)(6246003)(6666003)(7736002)(66066001)(6496005)(6116002)(4326008)(86362001)(189998001)(83506001)(4001350100001)(23726003)(5660300001)(3846002)(54906002)(55016002)(9686003)(50466002)(33716001)(81166006)(42186005)(25786009)(1076002)(2906002)(76176999)(110136004)(38730400002)(8676002)(53936002)(50986999)(54356999)(47776003)(478600001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR05MB1927;H:bars;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR05MB1927;23:ruIR8lcvOUbHxVbUx4NkO4RNkECI0rm/RRNHH8olO?= =?us-ascii?Q?01hEUcoogHsLWYuo8H9zR60nAUgTUwF0xevfcvwkuej/9xkjwM1uN8LnJIq0?= =?us-ascii?Q?qFgIMV1lOnnIOun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Wc+cdGGLaX+QQVq5XsVqq1vyAwY0qfyR/TTLmFXXyc9QXbXRbdJ/J?= =?us-ascii?Q?+09WIg1Uk/7sj9K3WdeJvZpk8Vdq0snMzYtuI+aeakXVbu7xGQyvJ1TPgJXc?= =?us-ascii?Q?ap96klneiK98uMEhZrOvIqu+uvU7rPvIwWxv+GXP7KUBXYodc/h1IZp1LnbR?= =?us-ascii?Q?uvc5RIFSUOB3PBywGhN1HUE9SvaQ2k7PXlecIkSoimyyHYK7ZfIkw/OxXHH2?= =?us-ascii?Q?swXSbet6Ar9srObOz48pTM9kSTM14KqrJlw/VX37HXuUZU3Khi8T8427zc1k?= =?us-ascii?Q?4=3D?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;5:FOnGJlV+WeeF6RtNyrCGgTtU4MQ4ey52JU/gukNV7LzECSi7WuUkygegT8L0w51dBL1Vzp56PK741hFA7EO48i5i40ph79osMaiDft+39o4CVZrhBEN9T4BJOlEqDLu37PvdourwhkoPZZ7jWAUu0+X8+WCx4f00gMvYXrIO+ImJPg1G71qaSYmeAOZASmwIRauJt3eaAwi6rZDZ4hcIvYNy8Qcy38oT6FM0l4iYi3BUwFELVDqKc1xhct5lwXrRgWLo5BdzHkJAkHVCg/ayAEn3CmM5447tNdye0Jnh2Nw9HgYQJeJ0Yd/HefJLRblI7jDJ/5X6vPkbxIbvcIryw2NUU46VHJ8WUAcfiNKykKu5xoRLPvpxdH+IlJWj2OnA12hPX5YINWx6ji4ZaVMg12iJbnv71VEIWB0ILd2iwnUujUi7bvzo+cRrVLH/tIbcCyHeZgHVrp8leIcMHUmdd53bY9vGhtxmxfA7DRVAOJX2XFA57RQOKhdFtGRzuVNd;24:+I6aHwEe6mJDOewj9FEUl/OEnUHW0h70WxEWfmGi602I3EvnrsVGGKNM9+gLdd+LHe/xN7sWV1sj3e6da/sifJjaoajxnjGVXX/wN/BdoZw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BY2PR05MB1927;7:LkUeBK4jmplxe7hI88Y30XJ0IyK28q1xkAkqjr+pDc+2W8WfiezVUKLbeiQuvM2sKMRPvvCNXCJkEDvKwLcIZOZNVGJZYa6+1C5ZuH+uINv7HJcxYBAkIuCjWI6QH+JSyrQcAibpKnRYyhrpWELgbaYxoOVr0IMBSH/Rcl7vP20H9MBYcBAifhR37JLYJQBae+pR2UB2pHzzrhIAqQ+qaxayqviNQfQ36WL7Rfv0dX9hxN1D7/YHYsyE4cnG4A7XJLH9emDZMBec/lgR3bfLk7pc/eHv/lX5H49ksFzjKuQ136hCB4q3zRc9TwH6xhIuPG0PQi2nEOlbQkAw6bacja7qCAZGrnrH9zEQ5UHlpf/V+t3jJxzrk9pgXeCr1ynURIw3a/vKNnmmH7QppMCR9JVVMwXCY8EORZck9btsdYnFbJGM70BLsVA/NdWf90MIDXgLxNfbaeBsyzWqgmhiY9MFgO1rRPqzXZf2HPbg5qETi+qElHv1XtrYKydpCocBTl/u6dweg/EUpQPOwmJ68ZoqxaW0QzVFpwEHCwlMDGUxm67lJ62SuA9v2Hk4TfLdB2ir5C10YXAXsQ+mXmPu+M/NuRwyEIOJ23M6ERAyHAhuPwjO2EUTJfxTXCLV8wpN+Q1QrxmFTmh5f8HZp4RjA2DE20/WeIJeFp0BmZX0v4tS5xrfvcWT2uijJgnn0UQ6VXjD7K5vbSXardZWqMuHwCxQyGR5AU3rC5v/r25G937/SYlklEGqG9IjTybRyPMSfXZ099ouqfF+e6r84khIN5QmTzuHlDEpc/Fov9wXrFs= X-OriginatorOrg: quantenna.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 08:25:13.7710 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR05MB1927 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 519 Lines: 12 > Not related to your patch but qtnf_map_bar() should be changed not to > return NULL. When functions return both NULL and error pointers the > NULL is supposed to be a special type of success return. Here it is > just a fail return where we forgot to set the error code to > ERR_PTR(-ENOMEM). Thanks for reporting! FWIW it is not a bug, all the checks of pci maps are in place. Though having both ERR_PTR and NULL in return indeed looks confusing. We will add a fix in the upcoming cleanup series. Regards, Sergey