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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3CBB1C001DE for ; Wed, 9 Aug 2023 01:42:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E2C7486911; Wed, 9 Aug 2023 03:40:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="GWMh11pi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3852A86914; Wed, 9 Aug 2023 03:40:53 +0200 (CEST) Received: from mail-yw1-x1132.google.com (mail-yw1-x1132.google.com [IPv6:2607:f8b0:4864:20::1132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 33A4B86911 for ; Wed, 9 Aug 2023 03:40:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-585ff234cd1so68442467b3.3 for ; Tue, 08 Aug 2023 18:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1691545250; x=1692150050; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4GFHsD8zoEa8ssqHKLkSSdmY50XRNUBtdWuSADsGeo8=; b=GWMh11pibx/CYuM26dtAxEVKXACr9xFngXiotQd+mXc+u3oDNeLwXMfHonZvbjAghP JQELQ8uRPW0tPBFT7V0+I9EjGnBaZiJdQ7/b8DedshXNb4N4cXldqqe2vpY+V4zaArtF 7060RnEY6iNFS+i5/ZQZO8ZO3tsctmlegCiBg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691545250; x=1692150050; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4GFHsD8zoEa8ssqHKLkSSdmY50XRNUBtdWuSADsGeo8=; b=ZKbHd3h4LhsvuxQNmiedlPnkXDZokTwU9PDczJXJ3P0yghrGutXF/MJpZab10Cx7bS OC9nidjA4pon1eeFdysE/zB1xZsfCGmdKMD91qhx3uqYMneFJFq6pAt0iyIW0Z56FKy3 kA9VBD2cMSDvPoDWNt2hNUQ0L1af2keifB7zoGr9rzyQ26eKcIN8Y55udbgIBWL1Ua5d Oie8g85x9jSbWn4dRD/kSyVtHy7q3ee9G1l7oP7LpeBknN4sSweWA54YpBWgZ4Lh0O65 Kyv6smh8JBELQG6fT8dnIZZKoWUxeDtBetRmEExRCpHKr6aVmMSymsKwDgq5vlpsfkw+ VqsA== X-Gm-Message-State: AOJu0YyEWFTtbfkkDwU1IcLKgTt1Vvm9ynlA349MWETvDJNk/CN+/g+Q ZdJAu8FL9Sssb6MoGPA0Db7bsw== X-Google-Smtp-Source: AGHT+IGjQLYDEbQhQSsPCNdYhs8F+HIppj6PAwOpeXd/8dGyXjNlpE94jQ+j7Xn4JnomT59ffCjuqg== X-Received: by 2002:a0d:fa81:0:b0:586:9fd4:6b84 with SMTP id k123-20020a0dfa81000000b005869fd46b84mr1334002ywf.46.1691545250040; Tue, 08 Aug 2023 18:40:50 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-c8dd-d0aa-4930-890d.res6.spectrum.com. [2603:6081:7b00:6400:c8dd:d0aa:4930:890d]) by smtp.gmail.com with ESMTPSA id m12-20020a819e0c000000b00545a08184cesm3719870ywj.94.2023.08.08.18.40.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 18:40:49 -0700 (PDT) Date: Tue, 8 Aug 2023 21:40:48 -0400 From: Tom Rini To: Dan Carpenter Cc: Marek =?iso-8859-1?Q?Beh=FAn?= , Qu Wenruo , u-boot@lists.denx.de Subject: Re: [PATCH] btrfs: fix some error checking for btrfs_decompress() Message-ID: <20230809014048.GJ3630934@bill-the-cat> References: <57f2b396-3db8-42ef-bdcc-a7aafd290694@moroto.mountain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="U21p89Uyc1q2P6MZ" Content-Disposition: inline In-Reply-To: <57f2b396-3db8-42ef-bdcc-a7aafd290694@moroto.mountain> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --U21p89Uyc1q2P6MZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 03, 2023 at 01:29:34PM +0300, Dan Carpenter wrote: > The btrfs_decompress() function mostly (u32)-1 on error but it can > also return -EPERM or other kernel error codes from zstd_decompress(). > The "ret" variable is an int, so we could just check for negatives. >=20 > Signed-off-by: Dan Carpenter > Reviewed-by: Qu Wenruo Applied to u-boot/next, thanks! --=20 Tom --U21p89Uyc1q2P6MZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTS7qAACgkQFHw5/5Y0 tyzQtwwAr64dzBhM4kh0u3ardGHIpAMYS0HGuAwCSii7tZ02evx6lbVL2ykseH2P N9WSdsAqRur/BowbUeWydLvHQgbzIPfEedf5VRoe7jf5Yi9c6kTTn3vHt7r0wyCO 6a63zYnXwmzliS3cyoOmnC8CfOvug4tl8N8aarDDoQIn2vzds9qrE6nF23Nt4eNf Uv/N1EC6m2tkoV9083ozaT7Sl6BhnYRKxfo7VVKejAJBxIKnWJDZuIxS1WVSBIAW qOt0MbWJdKE+PWkVD5Ol6EEk7BROEVbw2mznHeprpAkgtxOp+bUGX9oT4zwDR8tl BOPevt4r9xhwmA1I33XSnDS+IUBmmsgjLetommMDlQnKPEmpulNzvxAZ7fFEgOae 05emsdJ++MT7pB3GxDdRwW7tFo1NmYL8WOcGmQrWgDaCrDaJCmLSwalYmnwfi1og Et+KiX+4hh7uAAPmc5mDkl6x94hbz/9PBAqdJvGLG5Bh0ErnMzUqXmfJoJdQeqhE xqbFt3on =SEXR -----END PGP SIGNATURE----- --U21p89Uyc1q2P6MZ--