Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4792714rwb; Wed, 17 Aug 2022 06:16:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR7vRL8lzdO58WgXvhQbwEjlH8Yv3SZPcuz0NZq5F89ajrT2BRat3rvKSilQnRdW5vdIeliY X-Received: by 2002:a62:1ac1:0:b0:535:87d:d63f with SMTP id a184-20020a621ac1000000b00535087dd63fmr11122568pfa.74.1660742193394; Wed, 17 Aug 2022 06:16:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660742193; cv=none; d=google.com; s=arc-20160816; b=MA8WILfQ4TMruYvJ+7TnVJpoW6fLfDcOThl1KAOZGJpWCs5I58w3nxIaTrO0GjnufP /HmSStPOW88Bxf/06V5zj0t39ARB4gJy3A400KEj0xaCqjD4yaynvMLmSM+KSWe651mz xQtcAdDR86i9IvNmI2P0s208ovkbqoBOyecNKu9TsQNXav4b7AKk3O810OgAhek3O29x VSxLDkHK61d8EkWt3MctjRMSbzord4rcHWM9mCpfGl5+Fp/6EW1hGdfuVrz/+GeCkOpB wdk8mPIMV4WMm+ci633N08fkp5qcYNibyZVKokKEGorp/L/c9ewoHIQJ1MWfQO7kNv4f NtZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=LSKR5hl3tgpKX0usEXDbDtvnkvqMP+IzysUnZiGsz5A=; b=GB7wbTVH4zLFl4mqCj6iwC9rfmJsOk2BtA96Df33ObA68MQ7LOacj7zOgoAhcv9uQ7 p9Bo/chn+bmSSWKijIz21gG4KFIFt/wZLMYdAEyD827neMVCvUDyz15Ti5wvOf2TjA1Y bhX8tlPLuR7WlXQ6+O+TDwKh7vLPJ5eMPc48hi2mdSaDES723UrPGpN24cXnYi8/vptZ eweskrL9DADDAqdE3WKXrwrbknfzUS5wL/ONueQNBYV5aiSVXvEzUd+6v0xlzpzphgSt Np1psY6vtMmQItLMsTVGPv5K55N1kq0x+tJkMI0r/o8is2jlRjkGyImnD15Pld8W+SM3 4Lbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hRocf2Yu; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 4-20020a621604000000b00534be09c9desi9955816pfw.303.2022.08.17.06.16.21; Wed, 17 Aug 2022 06:16:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=hRocf2Yu; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239761AbiHQNMm (ORCPT + 99 others); Wed, 17 Aug 2022 09:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239787AbiHQNMU (ORCPT ); Wed, 17 Aug 2022 09:12:20 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2524B6A4AF for ; Wed, 17 Aug 2022 06:12:12 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 444C31F9A8; Wed, 17 Aug 2022 13:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1660741931; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LSKR5hl3tgpKX0usEXDbDtvnkvqMP+IzysUnZiGsz5A=; b=hRocf2YuSQcp4APeYj1SbWrJkHGfG4Txf7rwRF6Gtu1wEWhYDD7t8qdWCOhpgdsv1wwp7O qj8YpM/bRqQV+3/mLQceLqp0gJx6/rtjqtcSndntK8wjzBBKk89XX4xvqjGvtAjyLrDyf4 BUrNSE70eoBPpGcVIGZVteQjdYtHH+U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1660741931; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LSKR5hl3tgpKX0usEXDbDtvnkvqMP+IzysUnZiGsz5A=; b=rtw2K8tsLDvxKQbSYjfray2ttErKv1ZxMJM5RfdHpYt9eq9VeaoTdfKQu+42myKjMfDllS xdu3rPu0JDYUDADg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 2680813428; Wed, 17 Aug 2022 13:12:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id itmrCCvp/GKfUgAAMHmgww (envelope-from ); Wed, 17 Aug 2022 13:12:11 +0000 Date: Wed, 17 Aug 2022 15:12:10 +0200 Message-ID: <87ilmrauad.wl-tiwai@suse.de> From: Takashi Iwai To: Amadeusz =?ISO-8859-2?Q?S=B3awi=F1ski?= Cc: Takashi Iwai , alsa-devel@alsa-project.org, Cezary Rojewski , linux-kernel@vger.kernel.org, Jaroslav Kysela Subject: Re: [RESEND][PATCH] ALSA: info: Fix llseek return value when using callback In-Reply-To: <7324df1d-0424-a589-f7c9-df089a6cbefe@linux.intel.com> References: <20220817124924.3974577-1-amadeuszx.slawinski@linux.intel.com> <7324df1d-0424-a589-f7c9-df089a6cbefe@linux.intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 17 Aug 2022 14:56:05 +0200, Amadeusz S?awi?ski wrote: > > On 8/17/2022 2:49 PM, Amadeusz S?awi?ski wrote: > > When using callback there was a flow of > > > > ret = -EINVAL > > if (callback) { > > offset = callback(); > > goto out; > > } > > ... > > offset = some other value in case of no callback; > > ret = offset; > > out: > > return ret; > > > > which causes the snd_info_entry_llseek() to return -EINVAL when there is > > callback handler. Fix this by setting "ret" directly to callback return > > value before jumping to "out". > > > > 73029e0ff18d ("ALSA: info - Implement common llseek for binary mode") > > Signed-off-by: Amadeusz S?awi?ski > > --- > > sound/core/info.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/sound/core/info.c b/sound/core/info.c > > index b8058b341178..0b2f04dcb589 100644 > > --- a/sound/core/info.c > > +++ b/sound/core/info.c > > @@ -111,9 +111,9 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) > > entry = data->entry; > > mutex_lock(&entry->access); > > if (entry->c.ops->llseek) { > > - offset = entry->c.ops->llseek(entry, > > - data->file_private_data, > > - file, offset, orig); > > + ret = entry->c.ops->llseek(entry, > > + data->file_private_data, > > + file, offset, orig); > > goto out; > > } > > > > Doing resend, because I did copy paste mistake when pasting Takashi > email to git command, additionally alsa-devel blocked my previous > mail. > I've seen that Cezary already discussed this issue, and it doesn't > seem to be fixed, can this be somehow investigated? I guess we can > provide response we get from server when email fails? It seems working now. Jaroslav mentioned that it was some DNS problem. Takashi