Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp335719pxb; Tue, 9 Feb 2021 01:23:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeIGQzOh4dBydwTrW2kdYQx2i/jRIlPv8PHsw4DQTa2fBWz7Q1T9abyZLXEOH6BoPbSpGp X-Received: by 2002:a17:907:7347:: with SMTP id dq7mr21886666ejc.385.1612862584061; Tue, 09 Feb 2021 01:23:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1612862584; cv=pass; d=google.com; s=arc-20160816; b=h6gx4tMoidpQj7kxnSHTsNj8L3TESGMShd0QZY7SBvKMjviDBx35RIN18tTJHp0Q2d d048vPcRScA6THpk8o5MgwwL/9hETdxPIpTQnrNBbW46TUo11q8fmE8SDnMwO+/Gf9xj SCYxOweYQfDjVjlhQ2j+nZCBB27ACV7hpCK6adFZ4TMk/rJ0OO+5o+rOLvZeMh/qyjxE +L2Ej6yyLqgxaSYXygQA7wSOkoVehwRdiZce3VII/zBbxV0jLPww9Ik+A2nfj429w0SI 9dtA7PWsdQVIfUJY9e6GX2OO2v5pJ1vkzpVhDl04b+5sEyphodSWnCKNAl03PECKrKgq whqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=PAoCEl+UVCUyy0dArvQRL2PEvu9Q/Zsc1YCF+AuEgvY=; b=ZPUF8Ie/SrAb0WzRWZX0vpKrXrVgDqZ+h51Vm5yQqMnpmKBZebRg7GIrUbNBKSfzfa dBH37Mf1wjtdpfEtuZ0zYMQORJ2HlDUSO7zHB68xElW+6V1HSSn0etBEL6feQzbChFA5 P2Hyf9ZiarxdmOHuoHruuiya7QYCp9VdMH5RXFCTio95dxl5xwiZ3RUvtFWQljoj2Sbs PvM44iqnytX+Kv+pdk6yC+r+4jprhjveMJa7sJQ4NixPFtW95gaHPbzItZsJ6wBmgR+T QFOJz+mjhMGlCVpe5ZqhBhcHHjCBllIoVrTuK9q/l9h4ShQ6io2gMv8HP2jZ0fgEKqhw os1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Q8mf9g4n; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si13583284edh.147.2021.02.09.01.22.40; Tue, 09 Feb 2021 01:23:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Q8mf9g4n; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229853AbhBIJVx (ORCPT + 99 others); Tue, 9 Feb 2021 04:21:53 -0500 Received: from mail-eopbgr150073.outbound.protection.outlook.com ([40.107.15.73]:53890 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230363AbhBIJR7 (ORCPT ); Tue, 9 Feb 2021 04:17:59 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y1kuGs7cuSr6mw1B224MjZ5Tp4gt9u+TIHdUgX/rkf7cOoaZ9fVyy/EoNh/oBxGJuvZ+yunwuU+tbM7DiSXqDa8+QFfLJGql46ODw5ippv0zNRozr8B+1ZZf+LglPt2duEUAG7kOIqMsUAnX6k5xqiHXq7n2Qj1eioWRr07Ta/8jEW7OxQpFSRr/alnDmpRGW+i9y1uI0WYnoc9mxYZ8PAXDpVBleHQHGHtgmwWxR5VT0zXB/W4d57ebKVgM4EWDZrUiWlWy/67yJ7VTQ5VLGXft/q0jhaoUT8Wd95rwl90s6fCZCfoH5zaEc4a/sNExD+NOqHAugF3Uw+wqd8tKzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PAoCEl+UVCUyy0dArvQRL2PEvu9Q/Zsc1YCF+AuEgvY=; b=b/Cbfq5jpGkfvbeHzAH7qSL8swo27kW3DmMQrMhJU6jAZC0onTCLm9IddEBiRm0EdlAGtKjKMDeEZZhZVZWb+bYVI3FRJrf8Ei+BXLM1C1mj+5ko8uK6q15jxI8yhVyjPHR9YL4oQ2WX+oIt+fxqGPsjyDF4BSXPbv8llRhhV6tHh9hHFgoE2jZc2QsBrkbXO+DFGoM7NC7FqneNTK+vfrd4ks1bl63WLKK4Cr1DTt107yX2hFn64dnQfNt/njXcNy6dM1jRen2FQ8vRkMjL2Dh6CLcY2sVAJMEweFOaHeJMeH8jj1Czgx60pzw7NIUZImyv1IcHLpnJnIIXMO2sZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PAoCEl+UVCUyy0dArvQRL2PEvu9Q/Zsc1YCF+AuEgvY=; b=Q8mf9g4nCkflBky/Tcw+Fj3aMFaifLxwMQhT6WwR0LX2htlNgq2MkOTdSk6xvwlG26BUCTmZ3LhLX2rOuaoond5tMbRqkJrv/aHOLRiCZVt5PvScnDpfZP6GcDdIybKsreTwdVWH/n3QXG1QLe3eKQ2scEtnrSdYO4KNKXfkF84= Received: from VI1PR0402MB3871.eurprd04.prod.outlook.com (2603:10a6:803:16::14) by VI1PR04MB7006.eurprd04.prod.outlook.com (2603:10a6:803:137::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.20; Tue, 9 Feb 2021 09:17:07 +0000 Received: from VI1PR0402MB3871.eurprd04.prod.outlook.com ([fe80::b0d0:3a81:c999:e88]) by VI1PR0402MB3871.eurprd04.prod.outlook.com ([fe80::b0d0:3a81:c999:e88%3]) with mapi id 15.20.3825.030; Tue, 9 Feb 2021 09:17:07 +0000 From: Ioana Ciornei To: Dan Carpenter CC: Ioana Ciornei , "gregkh@linuxfoundation.org" , Laurentiu Tudor , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/3] bus: fsl-mc: Fix test for end of loop Thread-Topic: [PATCH 1/3] bus: fsl-mc: Fix test for end of loop Thread-Index: AQHW/j0+uozycm85P06YEWbvXtn5UqpOnDUAgADv/AA= Date: Tue, 9 Feb 2021 09:17:07 +0000 Message-ID: <20210209091706.ug7cjdn5rripnqv7@skbuf> References: <20210208170949.3070898-1-ciorneiioana@gmail.com> <20210208170949.3070898-2-ciorneiioana@gmail.com> <20210208185810.GM20820@kadam> In-Reply-To: <20210208185810.GM20820@kadam> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: oracle.com; dkim=none (message not signed) header.d=none;oracle.com; dmarc=none action=none header.from=nxp.com; x-originating-ip: [5.12.227.87] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 561f0317-41d9-4c38-a0d6-08d8ccdb7936 x-ms-traffictypediagnostic: VI1PR04MB7006: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1265; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: z5rWxq5j+yT+FOVqnp3MvTyxcMQajasylLHIg9a8SEKiKpKlBCBNiRlIiIeBVAL+9Kk5QnjfYynEIEtO9aUXCW/5Xsa6D1QWb9z+tDH89cMRQYHrbcSorEWT+rNWTT41GbYlCsPz8soG3xWTP+9ZGq1oh28JYCJqoSs+OfTBbgbrNPd2r7Ue/rXhSDr/T/y/pvZEcMmb70sl8aG3NZaPlFg8+4onh8NvD6FjztZmrRaoYyTXvn01qqFbfc8pNEggp2wVIXyx0vgz16d76R0JTM37UKLARKGmaCBWDYSiUa9P8l/LIa+lp6NVXPgKcoz+LSL9MURuWsRk71AAr8/7VbCreLuWa44Ta0PXTB5PTUoZPTTdITaCCo3nY4JDfPjyvkeJux3zfsF+ZdmcogWt6+IRxiMxXmgI407rd8OLRWng2yESeNWJUzgP9xU7jH7PXccg8l/1r1OCgSfAUbS6Lk9xOwhdytp7Pzu9o6bE+SL3ihHZMIlgkwJ8M2BzL/2nPm/33QMt1l/PcvkygddVYA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR0402MB3871.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(7916004)(366004)(396003)(376002)(136003)(346002)(39860400002)(5660300002)(1076003)(478600001)(4326008)(54906003)(26005)(71200400001)(186003)(33716001)(44832011)(8936002)(4744005)(8676002)(9686003)(86362001)(83380400001)(66946007)(64756008)(66446008)(6506007)(316002)(76116006)(6916009)(2906002)(6486002)(6512007)(66476007)(66556008);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?BqluJD2q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qfZHaj?= =?us-ascii?Q?hdVdbu1F6J63fInMrJNtuB/FUz500Hhx2GBYrvdDsRHKrPxJ2LyEyil0WT5M?= =?us-ascii?Q?s4F6IxWQkcX0YYJ87KBAbFlFUxvGtbJ1315jyXY4kETteYqKcsU575jsYKGc?= =?us-ascii?Q?/cq7y/kGlgpc76h4IiRgoA9vrepqrMzwicE37vsBSy5LW3cIOa6q/Zxtywbv?= =?us-ascii?Q?emQIsSwFNdmbjQtS9hkIJTheFZalAaa6xVs2wLO4L7fd9xWCOjL5OqJ1do8p?= =?us-ascii?Q?QtB848irTMQStfhPeKsEcpeDb2lRaYInwILm3UMMnwUqHGGJjJdDnIfvVbRt?= =?us-ascii?Q?HWItM8MlTRW4/H6WwjmYjadF4hTz7pmTZeeRaOFrYgwf/8PqMKtvx0oap6KF?= =?us-ascii?Q?CO//nCEa3b1SXHT5SVK5GDMHYun84jr6J+9IllVKh2orf4N+mtZ6tv7qSU4u?= =?us-ascii?Q?bzoNxp2XWGcuRbssSNosOMY7?= Content-Type: text/plain; charset="us-ascii" Content-ID: <73DEFE167F648A4FBF5D54F3DEE56F9A@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3871.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 561f0317-41d9-4c38-a0d6-08d8ccdb7936 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Feb 2021 09:17:07.5043 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: upYsM8IJsC/DRy280II/TElJ5tTPWY7G8g9bWzfJtIgFUlq5Oqm0DU5CGsKO30sbsoIbmRkpbRNARy3T90st2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB7006 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 09:58:10PM +0300, Dan Carpenter wrote: > On Mon, Feb 08, 2021 at 07:09:47PM +0200, Ioana Ciornei wrote: > > From: Dan Carpenter > >=20 > > The "desc" pointer can't possibly be NULL here. If we can't find the > > correct "desc" then tt points to the last element of the > > fsl_mc_accepted_cmds[] array. Fix this by testing if > > "i =3D=3D FSL_MC_NUM_ACCEPTED_CMDS" instead. > >=20 > > Fixes: 2cf1e703f066 ("bus: fsl-mc: add fsl-mc userspace support") > > Signed-off-by: Ioana Ciornei > > Signed-off-by: Dan Carpenter >=20 > Generally the tags are expected to go in chronological order: >=20 > Fixes: commit > Signed-off-by: Author > Acked-by: Whoever > Signed-off-by: Maintainer >=20 Thanks! I didn't know that. Ioana=