From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f49.google.com (mail-io1-f49.google.com [209.85.166.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF83D4282 for ; Mon, 21 Mar 2022 12:19:00 +0000 (UTC) Received: by mail-io1-f49.google.com with SMTP id e22so16410502ioe.11 for ; Mon, 21 Mar 2022 05:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=gviUCZoqMlwAzPxDTeni3/iP7iEP9Odnzm6mNqYWrWE=; b=sUINLx6thHdc+ZK8Os4juDGY3FX9AeO5hZVu/WjHFREy1p3ODH3sudnKqkHlbnB7l6 UO2IiYkkoyKWuTT31JjYaPqvJtA144jGu4cDav2Q+wXfQbPYU5Gx+6uyB6BAR4etAR3Z 3zG4DBXNSYV1rQBfDL3UrV+GYPjDf4tMlpGovjwSESOqxy5/CtlgY3GhqUpp/OpaIg5f rv8uY1at77CC7Mag+vZdnHCVQInAkvwytCiv3igX9p4CK2RSSxss1KzYdOS1OnEiRFPR wKqHrqwG9IyZNdLT3X/G0XosymFnKXHWY5p//o+JKPIEGPp8RDmLA4K+fkldDp6S9jpZ RpQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=gviUCZoqMlwAzPxDTeni3/iP7iEP9Odnzm6mNqYWrWE=; b=gzB31fLNwo1X2H40zzJPgPh512vdckepr+DyrxlRa5Uq+Udi00EWvtSN5ZB5uFQkru c8PZksdXn5L6W0sH2C8hgqa6JKACnCnLKQuUWjONAhXqk4fmafEv6DmPsNfPj91bQjXm hVloCwLFAvvXIsEjvhy5fusi2GmZdrJxRWMit+Oz/JPevI7tQXVYI9999NlBJmBex+nD 6rSF5ndC6CK4Q6DtqwzzjnWaESx00tLI35NF7o6iN9+LK0uRmNHtHVJtwIUURGcBJp2S wmZJR5RFtJPabW0jVee3SIN7QgCwJxeiPDZyzSNxz+BxTQZt1n045sUp7akuwof4Ewni QBHA== X-Gm-Message-State: AOAM533DmreHM9f4U+C66ZOphGdsO2+Vwjz6jU1NxKzNDRaLvB9dkacE D5TNNXbnoWsyT1DNrqr9wOVDIg== X-Google-Smtp-Source: ABdhPJwnU6BWz11dWizI7zp4dHVLETJ6TbQyIBffJyHl3m3j17tE7tcHexwcX2y3NMCekWPKLLRtlQ== X-Received: by 2002:a05:6638:1455:b0:319:e467:656b with SMTP id l21-20020a056638145500b00319e467656bmr10518195jad.111.1647865139942; Mon, 21 Mar 2022 05:18:59 -0700 (PDT) Received: from [172.22.22.26] (c-73-185-129-58.hsd1.mn.comcast.net. [73.185.129.58]) by smtp.googlemail.com with ESMTPSA id w8-20020a056e0213e800b002c8279fb9dfsm1847793ilj.57.2022.03.21.05.18.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Mar 2022 05:18:59 -0700 (PDT) Message-ID: <312061ed-61d6-4e2f-a180-8e8c85573e31@linaro.org> Date: Mon, 21 Mar 2022 07:18:57 -0500 Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [greybus-dev] Re: [PATCH] staging: greybus: codecs: fix type confusion with dedicated list iterator variable Content-Language: en-US To: Jakob Koschel , Dan Carpenter Cc: Linux Kernel Mailing List , greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, Johan Hovold , Alex Elder , Mike Rapport , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." References: <20220319202058.2518847-1-jakobkoschel@gmail.com> <20220321084844.GG3293@kadam> <23587784-B0EB-4FDD-B5BC-DC1B16404DA7@gmail.com> <20220321092132.GI3293@kadam> <56102C8D-DBFF-43A5-9641-04577F01AB6D@gmail.com> From: Alex Elder In-Reply-To: <56102C8D-DBFF-43A5-9641-04577F01AB6D@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 3/21/22 4:27 AM, Jakob Koschel wrote: > I just released some messages that were marked as spam. So this looks to me like it's already been seen on the list. I'm not sure why this happens but if it seems like deja vu, you're not imagining things. Please know that this could happen from time to time, but I'll see if I can find out how to avoid it. -Alex >> On 21. Mar 2022, at 10:21, Dan Carpenter wrote: >> >> On Mon, Mar 21, 2022 at 10:06:13AM +0100, Jakob Koschel wrote: >>> >>>> On 21. Mar 2022, at 09:48, Dan Carpenter wrote: >>>> >>>> The subject says that it fixes a bug but it does not. >>> >>> Thank you for your review! >>> >>> I don't agree that this doesn't fix a bug: >>> >>>> + } >>>> } >>>> if (!data) { >>>> - dev_err(dai->dev, "%s:%s DATA connection missing\n", >>>> - dai->name, module->name); >>> >>> Using 'module' when data == NULL is *guaranteed* to be a type confused >>> bogus pointer. It fundamentally can never be correct. >> >> Ah. I did not read all the way to the end of the patch. >> >> The bugfix needs to be sent as it's own patch. Just the one liner. It >> needs a fixes tag as well. >> >> [PATCH] staging: greybus: fix Oops in error message >> >> The "module" pointer is invalid here. It's the list iterator and we >> exited the loop without finding a valid entry. >> >> Fixes: 6dd67645f22c ("greybus: audio: Use single codec driver registration") >> Signed-off-by: You >> >> if (!data) { >> - dev_err(dai->dev, "%s:%s DATA connection missing\n", >> - dai->name, module->name); >> + dev_err(dai->dev, "%s DATA connection missing\n", >> + dai->name); >> mutex_unlock(&codec->lock); >> >> We're happy to apply the other stuff as well, but we don't mix cleanups >> and bug fixes like that. > > ok great, I'll separate and resubmit both. Thanks! > >> >> regards, >> dan carpenter > > Jakob > > _______________________________________________ > greybus-dev mailing list -- greybus-dev@lists.linaro.org > To unsubscribe send an email to greybus-dev-leave@lists.linaro.org