Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1303235lqb; Thu, 18 Apr 2024 06:18:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1rJbYhzgqbqHPjJfGOK6+K45BW+PUsKL2eVT2b2aq6fLKpDsdXDsbFygUwfl8NkQ2usHey5//pfO3/FY0VXzHRcevc/Ma9Sozh8+Jiw== X-Google-Smtp-Source: AGHT+IGG+GF9Hq7cnRWp9mrUFz2lRCIDM8X4clwIXRXzmzLoYZKDv6DuDHnoqUyPlUE8LlSslvYM X-Received: by 2002:a0c:d850:0:b0:69f:f2ae:cad6 with SMTP id i16-20020a0cd850000000b0069ff2aecad6mr2705695qvj.11.1713446303233; Thu, 18 Apr 2024 06:18:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713446303; cv=pass; d=google.com; s=arc-20160816; b=fpqwjzit3I6X1IvAuWdsZyCp2ofenyRgr9wvv9B29N+4WsPtLd64m6vnyhxCsiLBFJ fn7uOwebnOoSsFINJT+W9WmsVfNhdc0gFAWrn/90/kIhUHYhD5hWXd9nj1CRYoi53c5D mCPBXvQ/1E3Jmou7BXDWQj820kdhj6qdQR6fdqsg58j6gOP6Hs5vxHhllxmWuLh6HzAM 4WiGSQwL2TPPvQ279v1+zGQul2Z1P//XEbGpqPf2ITNEZZtFjlJzEv9xi0hzNKkm3f/v aAOjpLAqb/R4TJhSVDf/TtwkN+/DaFuiDum4PXO1n9z8lZ16d+KuHGCkkCyJ9QcvOAc7 tVDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=flXWdtTxGnWZOnWp6rT3waOHYiUoEw2A69kXCBp6sk4=; fh=09M2aIUk217xVHHSKfJvC8gudmLoJFMlq58sm+GC4Qo=; b=x9SqJR6qhkU6atemdNhcd3SuKbWjgO90Kq8DHI3uyirjMj98vFIAjKUY9WzIzERjWf /AbE+koBlssPLX97K00PvxKq90vOZ3GjPpaE+iZXgF+Ph3/N9ozBjUvmm02BhFiAhmKj bee4BzcGS4cI5S36NW1/UQ6BdSEbx7fIr9O7tONtXE055lMfgTyrFSM4anvKMtoBWkr5 MdtiMgaJnT4QVnQuftTGzlDc62UPtryKXDu/elP+0GOv63E5peGjd0TY2IS2Sltj4n5/ tuoHp4TjP6AGAgVmdxEGZWqnW7cNso2+8FZ1t7el2W7mJWPUpMuSBXfGWq27s0Gh8la1 XleA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BCz1GL0A; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-150150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id r17-20020a056214125100b0069949b82546si1472791qvv.79.2024.04.18.06.18.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 06:18:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BCz1GL0A; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-150150-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F0D7A1C2103F for ; Thu, 18 Apr 2024 13:18:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9002815FD13; Thu, 18 Apr 2024 13:18:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BCz1GL0A" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E01F14291B for ; Thu, 18 Apr 2024 13:18:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446286; cv=none; b=ZvOT5GUvvranGW5Lq5fzESPeai1BQyCwRxGrj5goNr3WOFAX5PEgm6ujmS+w1cWEC9JAWkpDAWnak4CFQrvMQJR3BD31qHQNLw8GJUjxAS14hVq14K7WoLYdODjfD7zf9SbeR7jPSfQ5EoOD3NXSOsizJIdObkJ6JdEn+FQ833U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713446286; c=relaxed/simple; bh=DXGn4qVv3QckU8tQRWbJr0FqwlVzB+OywFLorem+Pzw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GqCCT7IGav2jXasKG5RNk8NFK2yQ0P/CgSdRggMUJuiLIFWzv4RY2FOTJQYzAkz5OXU4lDsRAVSTk+OnFevfwNqaG7N9SetcTJySAV99cUTRz3QgiK5ASiunvj+Jwq7VDlzVc2GyFzJ8XtB6b5eBlmcj4BKoWLoMAaYRwvMZlLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BCz1GL0A; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713446283; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=flXWdtTxGnWZOnWp6rT3waOHYiUoEw2A69kXCBp6sk4=; b=BCz1GL0AlzhzTQrNwq2gFQrG2ayGBmm6LcXLxJO8jkBaH0x/sRbSXMZ+JsKyhvPNiV/KW4 YTwXpNu4q9XR3fRarGMLQTVNk5FpRouHlsYDTO7ttDd0SzIjQD1LbaUmyIXh6i1UhaT5sy lyEJ0cyCzjNWuIEqZGQ59TkArASxE/s= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-614-JogV6t9rPumfDMhvbxkkvA-1; Thu, 18 Apr 2024 09:18:00 -0400 X-MC-Unique: JogV6t9rPumfDMhvbxkkvA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 78D99834FB3; Thu, 18 Apr 2024 13:18:00 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.16.186]) by smtp.corp.redhat.com (Postfix) with ESMTP id 53BDAC26D24; Thu, 18 Apr 2024 13:17:58 +0000 (UTC) From: Wander Lairson Costa To: Brendan Higgins , David Gow , Rae Moar , linux-kselftest@vger.kernel.org (open list:KERNEL UNIT TESTING FRAMEWORK (KUnit)), kunit-dev@googlegroups.com (open list:KERNEL UNIT TESTING FRAMEWORK (KUnit)), linux-kernel@vger.kernel.org (open list) Cc: Wander Lairson Costa Subject: [PATCH 0/2] kunit: fix minor error path mistakes Date: Thu, 18 Apr 2024 10:17:51 -0300 Message-ID: <20240418131754.58217-1-wander@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 Hi, These two patches fix some minor error path mistakes in the device module. Wander Lairson Costa (2): kunit: unregister the device on error kunit: avoid memory leak on device register error lib/kunit/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.44.0