From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6FB35C433E0 for ; Mon, 4 Jan 2021 18:27:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DB29221F8 for ; Mon, 4 Jan 2021 18:27:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726074AbhADS1H (ORCPT ); Mon, 4 Jan 2021 13:27:07 -0500 Received: from sauhun.de ([88.99.104.3]:60440 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbhADS1H (ORCPT ); Mon, 4 Jan 2021 13:27:07 -0500 Received: from localhost (p54b33105.dip0.t-ipconnect.de [84.179.49.5]) by pokefinder.org (Postfix) with ESMTPSA id E8D352C04DF; Mon, 4 Jan 2021 19:26:24 +0100 (CET) Date: Mon, 4 Jan 2021 19:26:24 +0100 From: Wolfram Sang To: Hans de Goede Cc: Jean Delvare , linux-i2c@vger.kernel.org, Serge Semin , Linus Walleij , Andy Shevchenko , Mika Westerberg Subject: Re: [PATCH] i2c: i801: Fix the i2c-mux gpiod_lookup_table not being properly terminated Message-ID: <20210104182624.GB935@ninjato> References: <20201221134225.106728-1-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WhfpMioaduB5tiZL" Content-Disposition: inline In-Reply-To: <20201221134225.106728-1-hdegoede@redhat.com> Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org --WhfpMioaduB5tiZL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 21, 2020 at 02:42:25PM +0100, Hans de Goede wrote: > gpiod_add_lookup_table() expects the gpiod_lookup_table->table passed to > it to be terminated with a zero-ed out entry. >=20 > So we need to allocate one more entry then we will use. >=20 > Cc: Serge Semin > Cc: Linus Walleij > Cc: Andy Shevchenko > Cc: Mika Westerberg > Fixes: d308dfbf62ef ("i2c: mux/i801: Switch to use descriptor passing") > Signed-off-by: Hans de Goede Applied to for-current, thanks! --WhfpMioaduB5tiZL Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl/zXdAACgkQFA3kzBSg KbYjnBAAsolNLdBINdsMFNPb67+PBmrwsh3+Hxd5JPoXuaueoqm3FM49scMOfHTK HTM/7Z0WWBZXeagRNJ97ft9JxNKm8qKbdV+w1dsq/WuGjndk1NHvMJJ82pAA2AbB fXgRVhHO0imSS/QPSHimLg0sm9YayRS9M56InDhmenMh+B85cYrjAnRn7H7/n05Z vPiM6r9g46cYTxEW6InVnLA1EEGrD1bsMpoKwbvq63TAZjxWogLjDmBD+ovOb5ra Ga0NS5geN1JwV8tYVh8nCmoPDy74n5nu3IIV6NonutQ/xN/uF/O0vkWi8+zRu5IR xHmEAIeHRWdlqbwLqni+dtLuyBfqoDVjnTV+hzW5x6jj3ZCxESJkZsdvjbQ4ZMZk 8OtVBtLKYdavOnVsO4MQ/n4KFuvUywsRNe+RbJhxXub9EalbPmBJ9PQeyFt0bxTx Hz6d9WRswqXh4TfS9Afx8ZK5ieE2X44R9h1hLoC6fvqaaUvVFOizjh2cg7RRhnwn jcbgQFtL8pWkPkieWpA4MEp1esKbzdl4ViIsxhk+KZFbGfJZ+TApcKykhpY1d7H1 bSclFS/iOxdALbWIsVZ8iPJI1DxMtKO92zuqk5Qg5STaLX5doZAJ3+y2nsMfrMW9 nlld2s6dAKXDvbm/qqQkOu9m6j52NdBFdc+cn9DDn1Fs80phTxQ= =wznx -----END PGP SIGNATURE----- --WhfpMioaduB5tiZL--