Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp784053lqg; Sat, 2 Mar 2024 01:30:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXXGd6jx59LflSGle6yVf7rDFhs/DB0wgJDcFrE1A0arg8AE5kihOKOvOjPI6XHjby8Es/bMQWk9xxLifd37q5w2TmxKysLXs+86DIGXA== X-Google-Smtp-Source: AGHT+IEyX4v2x13POhehbyjaQk8XyES8Un7S9QgfJZGbrdfDlza8yaqWL5QsdsLaP5SOaQigfXQ4 X-Received: by 2002:a05:6808:bd2:b0:3c1:d373:dc2f with SMTP id o18-20020a0568080bd200b003c1d373dc2fmr4694610oik.15.1709371859224; Sat, 02 Mar 2024 01:30:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709371859; cv=pass; d=google.com; s=arc-20160816; b=QjNjTHh1E0GgU1hKWcyHXH/+aw2Cnup3NNDVVTmgeT/mDskO1tclw69yZE6eFAr07F UrOWho+pr7ClHJwbiFoZLOrUgjrU3VA0f1UWRNzbte+bqq2rGJjS9SpN6lm+CfRRTzAu 7QgwUMza3UJj3I8/GINEipK8RFMEQ0gOr/V0QKOH65hC7os88huy6xUP21WIeVv3VE/R nnny+5JeswXSwHS6y6+5Ccu5tYBPqYpwRSWljYcu0JNr+CeieEav+GwA3OFjTySzlHNe 2HWrAXQihjCEL3qXb8pY1qMdNZvlu5nJwTeKkT5ckHfLThX6Z4AAmC5KCl49cZEAzsLB ePzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jiIgfGNGkcSh1CwXpg72grT/j2Z4zd63NwGcxMrVBgY=; fh=qjNdpH9nJhD2inJ0vEcuIdGj3aPL9S/1Dzjh4p6kirM=; b=a2pUz/nctmr4h+uGTfXdDNmBs8vwvz6I3GmOcPPNNTvu49fms57dXOc809EgemjPgn 8mU4q/zoWi7PbhlSNtH2HADV2QmMd4JoWnDrOdi6mmRFuz3UINCClmaR6+lE1GGuhW5G BSz8sjSVNSWO2/q7f9D3BDHWST4VCKgAHsH43vSO5IgeWVja7vtsazdSMnsqWzDs5KH0 C5gC1Um3BkY3pQjI8IBb1ZTO4ru3a98PeoNWmmsazwD9jQGK+rI07wZaSEE/i5RxqVyJ 8yKs9R4Wrzh7gXa/w3JjSQlhNx/QjQ+yYbZ3k/R2Kc1EMjW9ToObLwrA8guGdik3n8Gi jhcg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hmfcTGw8; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-89397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t2-20020a17090340c200b001dc5676b43csi5129372pld.254.2024.03.02.01.30.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 01:30:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hmfcTGw8; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-89397-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89397-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D5BFC284149 for ; Sat, 2 Mar 2024 09:30:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 307C514296; Sat, 2 Mar 2024 09:30:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="hmfcTGw8" Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.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 A730113AE8 for ; Sat, 2 Mar 2024 09:30:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709371848; cv=none; b=cEKE2gwySr/WYor72M3A6gsBa896lOhqTm8qW+ULVqfy+4kOpXEPu1tTn9a6P9mt64+3AssKw1cM4aZBx0UQ5tAH9xwEshw7neQ2SnfZsrY8WfNZQljyfl6Zl8ZTJtW2LjW88qYNwJZIc0Tiy0TE1cZahgE5O7g/EXQw3Bx+sAY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709371848; c=relaxed/simple; bh=eCgnW8M/j8u34ZboqlKqp7zGcLxGZiu6FsXWMaJggYM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kJlGSnAvtnMGmvDgBpEVzZpu/Zjb/SJT5Ljbp00DGMOdj1rPfPipmVPIibaORk0QQit5urP27duXRJvlByXkdZ/JV3pMsHiKVFUL1nhGC+VUmVCxpW+fKiP0Ja3hV0iDOO62qhVoTsulg+eCyzCjNfTWRg4isgH7rEhhI/pf+Wk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=hmfcTGw8; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-33d568fbf62so1463386f8f.3 for ; Sat, 02 Mar 2024 01:30:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709371845; x=1709976645; darn=vger.kernel.org; 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=jiIgfGNGkcSh1CwXpg72grT/j2Z4zd63NwGcxMrVBgY=; b=hmfcTGw8yF9Cy9MHRW5sZ5MU3wbD6jdvUXBreLEQLNPRqKVkd3yLqmOAu0tjC+qE/c RPDTTdgwnNr0vM/QFvV4ZgANU4jsIFSSNNT666rtIXZE8gVe+f1FAKEQOsrfR6kve7Yf Z77FcjIgmIv/gaNUnrSi1RuDWuIDHGvci2ReRxq9/hfeCMgmNJTF0/anvtT3hwhxi1nT p9YyMGIiNfxDZgigSDXf1CjSffgGANAqxIChL0XCKyAVRYeF87o0rF4C7JKJr6D84LzT 1oA+XuyI2Rrzmd/ZJiWFmqA1wzY5gNZNwxZJC6kYLHZ88mkrNx7jKhbmkqqDslvVux8j RsvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709371845; x=1709976645; 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=jiIgfGNGkcSh1CwXpg72grT/j2Z4zd63NwGcxMrVBgY=; b=GxstipouUEIdw9NgV3I44T+4mTjUbGEi/wYpwsLltH0jFdpAIu5ZeNU74UhrNHHyG9 rkilyQL1dIEJZMxxoWKh+LTqr5cXQfCOD48VLRc8/N5KVaL8g3hQVhCSy7HjzOgaS1gl AQAeAOCaK/SniXg86TnpLQie1wqYtE5AlT/jewKL2Ix/6ECqSE4Ww0xRWW8f0dnmeHo8 z5pxJGIpy1xbt0flIdjiFcVpRgZCfqs9IS8SXjDI9lZEFghFaVYr9L/3Yj4mf/mUaWr2 c6/aHD05Ktjs5635oR/AkOp4LvW2Ubjh9fxuxoygEzEidtq7Bx0e0tCNh5W3EYR7UPJR 08tQ== X-Forwarded-Encrypted: i=1; AJvYcCViCXc9kXj60X7mDoTra8DOIrm+Gq38eEpD955qBq62Zzcj95yyYojQIAdDAp/AedzuVv/UjKRvJFge/w0amFl7mOCDDvTqVZ04H3LR X-Gm-Message-State: AOJu0Yz79OGnv68QbhRJP41VXPT77/T9F0KFJO4lSc9/BRdK9QNNBNkc GrAS1I03F6TbS6ObRlSurUJHER7OgPv0C2GTu/GXCHhVeH662rZ2pbkIw9iTXnc= X-Received: by 2002:a5d:4d45:0:b0:33a:ff66:fecc with SMTP id a5-20020a5d4d45000000b0033aff66feccmr3044907wru.26.1709371844864; Sat, 02 Mar 2024 01:30:44 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id j11-20020a5d604b000000b0033d9ee09b7asm6832874wrt.107.2024.03.02.01.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Mar 2024 01:30:44 -0800 (PST) Date: Sat, 2 Mar 2024 12:30:41 +0300 From: Dan Carpenter To: Luca Ceresoli Cc: Markus Elfring , linux-staging@lists.linux.dev, linux-tegra@vger.kernel.org, linux-media@vger.kernel.org, kernel-janitors@vger.kernel.org, Greg Kroah-Hartman , Jonathan Hunter , Mauro Carvalho Chehab , Sowjanya Komatineni , Thierry Reding , LKML Subject: Re: [PATCH] staging: media: tegra-video: Use common error handling code in tegra_vi_graph_parse_one() Message-ID: <9f1b617f-06cb-4b22-a050-325424720c57@moroto.mountain> References: <20240301183936.505fcc72@booty> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240301183936.505fcc72@booty> On Fri, Mar 01, 2024 at 06:39:36PM +0100, Luca Ceresoli wrote: > Hello Markus, > > On Thu, 29 Feb 2024 19:55:46 +0100 > Markus Elfring wrote: > > > From: Markus Elfring > > Date: Thu, 29 Feb 2024 19:44:36 +0100 > > > > Add a jump target so that a bit of exception handling can be better reused > > at the end of this function implementation. > > > > Signed-off-by: Markus Elfring > > Reviewed-by: Luca Ceresoli These patches make the code worse. If we're in the middle of a loop, then we should clean up the partial loop before doing the goto. Otherwise it creates a mess when we add a new allocation function after the end of the loop. Someone is going to add a _scoped() loop which uses cleanup.h magic to call _put automatically. This is a good option. regards, dan carpenter