Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4808443rwb; Wed, 17 Aug 2022 06:30:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR5irisuxM5xs1WT1KjCemc8XFcqphomj0HKN16Z533pLxZyaotPQEdbGU0Ays+o4gsQF1Nl X-Received: by 2002:a05:6402:43c4:b0:43b:c5eb:c9dd with SMTP id p4-20020a05640243c400b0043bc5ebc9ddmr22916369edc.402.1660743052107; Wed, 17 Aug 2022 06:30:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660743052; cv=none; d=google.com; s=arc-20160816; b=Ae3f+cm5KTrpaBICCIaSwMKtCzruKmzh5YCTCIydalDgOz/LfJ8Qx6w+2dW/WV0qCb W0iHU2Kn2JIKTezvfJ3KqJxOBmAdfdlOmH75HI4r28aPphKMKvj4SnkMkAxW7wJJpbV2 olyo1TWFhbjdqoZZd1vE8TBQUvFn0EaN0IJJ7PquV8i4mHRHz2zjycMWuk+bZQQJnQK/ g/3iV3ttstRo1mKVF2dxepQC8NATjC7WVYHAWhy5dgY6dD8OPe+iROgfYazhfDB5VwEh 2364/nfRjnNrvpms3YOUl9Gwh2V/w5yyX7/3NvzLRRvOEossZYDSzclfDGUu/VwqKRA/ pCew== 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=gzWMUo926OQBOYmYnw3ADnCbBaPbZEizFN9qC+x8VIA=; b=HUqRr50WWPhdCmkqwgBWk/ZvMi704GEjj2szuwwLcZ5IsnzQRDpdAr3Elp3nNdjlyk 6Y4eH33OPSBgGruXYVPy9YyfoVlepfYUUhmG4aAfeA3enM02KNV9ph4lJT+AfDflL7xA NXo7g56tdhSEW0zIDJ/DIn6sRukwcyPNP4+3tV8Aemp0J6J+h/5DFQfF+Tnf1AB6i7R1 lIr3lHYugIInmJ1he59hZC0k97TWm2D4SZiru4DHYJb/WqZADbkL3ED2Ox4crcJmPxoi J5buU3zMz5086PRIgnJG/KWGVrBsSap5kZL+zIboJTS0PAaVJhDy+NmWv6/ujl2BYxyg dyHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Ryr6LXT+; 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 sc11-20020a1709078a0b00b0073159d94163si2017291ejc.619.2022.08.17.06.30.24; Wed, 17 Aug 2022 06:30:52 -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=Ryr6LXT+; 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 S239884AbiHQNQK (ORCPT + 99 others); Wed, 17 Aug 2022 09:16:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239961AbiHQNPj (ORCPT ); Wed, 17 Aug 2022 09:15:39 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8192985A88 for ; Wed, 17 Aug 2022 06:15:22 -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-out1.suse.de (Postfix) with ESMTPS id 7FB5937A47; Wed, 17 Aug 2022 13:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1660742120; 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=gzWMUo926OQBOYmYnw3ADnCbBaPbZEizFN9qC+x8VIA=; b=Ryr6LXT+25LYEzTLgF9myB+wSGVlrjiIeYZv4us3Ez0zIZQd56e2YEBjcTNfp14U+1Fe3w GYt16OAt6v9xib31CcGK5rH3FsEECwIUQao5qxfmEuIGx5MFj6OuZcSB4iJTgrTGoUqQdU WMt7JJX2tTA1XOLJBlpN+V05VRQjKUM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1660742120; 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=gzWMUo926OQBOYmYnw3ADnCbBaPbZEizFN9qC+x8VIA=; b=/pem1fBk4pLJlNOs7XURWIK0sTSuOZ3UrwuLSaWrVrIrOg0VYlgIqSYfnI+bSas34DA5Xd M/y5XJfNVPEa1HDA== 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 575B513428; Wed, 17 Aug 2022 13:15:20 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 6AKPFOjp/GItVAAAMHmgww (envelope-from ); Wed, 17 Aug 2022 13:15:20 +0000 Date: Wed, 17 Aug 2022 15:15:19 +0200 Message-ID: <87h72bau54.wl-tiwai@suse.de> From: Takashi Iwai To: Amadeusz =?ISO-8859-2?Q?S=B3awi=F1ski?= Cc: Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Cezary Rojewski Subject: Re: [RESEND][PATCH] ALSA: info: Fix llseek return value when using callback In-Reply-To: <20220817124924.3974577-1-amadeuszx.slawinski@linux.intel.com> References: <20220817124924.3974577-1-amadeuszx.slawinski@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:49:24 +0200, 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") Fixes tag seems missing. I corrected locally. > Signed-off-by: Amadeusz S?awi?ski Applied now (with Cc to stable). thanks, Takashi