Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2312043rdb; Sun, 3 Dec 2023 11:10:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IHJaVU6A58mNZWCVtO6FQJhTiH0c7+MbtI4zZ44j/4NZ9BY0Gh0sXIHTxZ/Yy1ZR7wPkg/9 X-Received: by 2002:a17:90a:9111:b0:286:6cc1:8669 with SMTP id k17-20020a17090a911100b002866cc18669mr1213234pjo.78.1701630614145; Sun, 03 Dec 2023 11:10:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701630614; cv=none; d=google.com; s=arc-20160816; b=C4zj8HhOrDMZCWH89w5VeEfQZ0pOR+WMDAJ6TTfNidE7w02YKoh+N0zCbKh01u/dYE E5NWj08LyJodtPwuD30fhb45MmFItRoroU7YA6ojgH3Wt/RM9R11gMHOvJPFji+00yae k3hvK4URSIyVGfiUqcjHFZD41nYD8UhpTSkwR8EFTLLuE4YUdgo3yYyzVhFcQBEI+FjD 9REaeDU5DCqOY1cwKgFwUCLNBQv7I2YXhYwCdlm1Ldb1iWdmFSCYgW70p/sFHRhHjeGF PgRl0iwmNAUKTFW223Fw30vVjnhsLgTwMF2L9hDAERw6xYDfCnjldiSnFXqimPSiN/gQ XbqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ps6r7g84dej2iXkt9eKsvqXbWsrUKi3Q/Yryr1CTCAU=; fh=z/fU1gc0Dmt0fOYpgL7ShcARqQ5R8H+0q6jLl8O+sGo=; b=oLow8R5+MyYjLacKQf63W/Vf9gBcYT6/wwPrw78ruijz65cBcg2GPhpY+rEA8WQEy/ 76xPpPyyaJUI8drDSVpXM4gIkK4ml0/wEAzA725u3agzf4hVvJ3lrmmw1FHRdjHobYNw nnEwCTSD9PHONHuMX+K3CLqE4qd07R8upu7Bt0EmuHmabbBF89tOxRdFSfvZPxhYNKZu s54PRtKKFqn+wGfnfNFtGSzl+SkMkNrXp+pmZ5Ochepb8kWJuieHVtYgZHtvK8alLd0Q 4kBOOyMjjYU6bLvFl2On1WDZXQ+Niy/OXtsljD02Xqg64edSOsmqLiOFuU/IUi2lRKAy AZXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F6wyskXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s17-20020a17090aad9100b00286864c9cdcsi1741631pjq.125.2023.12.03.11.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 11:10:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=F6wyskXG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AE9D48047553; Sun, 3 Dec 2023 11:10:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230011AbjLCTG0 (ORCPT + 99 others); Sun, 3 Dec 2023 14:06:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCTGZ (ORCPT ); Sun, 3 Dec 2023 14:06:25 -0500 Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A817A1; Sun, 3 Dec 2023 11:06:31 -0800 (PST) Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-67a9cba087aso21787596d6.3; Sun, 03 Dec 2023 11:06:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701630390; x=1702235190; 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=Ps6r7g84dej2iXkt9eKsvqXbWsrUKi3Q/Yryr1CTCAU=; b=F6wyskXGMMBePCsoWEYdvji8gix/8LxHALFr6sAa5QLW5b41HVvvH3txALkh5WenjR SxI9WISliAIdbbLsvKHjGXYpKdMzglZ0AGVgImQ8vcO9271d4aYqvT8zcfPty4dpz7PC qB1et7FKzepjiFCejt8c/HL9cbv2CjeRnwyNJAALGpiFCQsgM6BFKmY77+bluzYjhEKz r2oRvYXv+UqylQf9r8gmcDCyxIAqkth3jJR1Ur43jPt81AupovfzQfAMJNKaaYaCpvUM /eLe3aTj/0tqBLWzr2IiOyTkN5WR6VLvo/ibdxGXH9eKMAOZB5oh3yRoIaSKDxQbro4j tkFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701630390; x=1702235190; 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=Ps6r7g84dej2iXkt9eKsvqXbWsrUKi3Q/Yryr1CTCAU=; b=D7RyxVkuYFhdYNhp5Z+aeQ8TxMBRjAAepIDOJQaifLeCs3USvT7PASrp/zVN924I/C +GEdE7lGPG9te0X3CtxYIORG2f/+LrMkhu2kj02gEe+h7gozwBL2xDXgdpU5q80zdp2U gmn3jbP67JPk5qUE3Xy7ImFB32dqapPEfJNBdufhbZkAuYeILY1lMoVTmXR0bkjbKrHf M4gekVvs/HJGkPcsCr7VA4sj5HKUfizUAynoXABfVk8iYGnI2RRou8L2uZ0hqbNqScPJ 6aAIH4sHK3OW3+BhfyyuWTac3z9iiVldcwKKvoF3E7gDyRvym4jmBIDmSD74syKjjrcX BUbA== X-Gm-Message-State: AOJu0YynQ5c5rC0P5EalzbnhLHMrCnQ4I3H83v1SK295QGFvWSv3clNj NZvvUhfeRoMCUcPxN7zH56trSZQUvjw= X-Received: by 2002:ad4:4e4b:0:b0:67a:c636:179c with SMTP id eb11-20020ad44e4b000000b0067ac636179cmr859020qvb.37.1701630390150; Sun, 03 Dec 2023 11:06:30 -0800 (PST) Received: from google.com ([205.220.129.26]) by smtp.gmail.com with ESMTPSA id g9-20020a0cf849000000b0067a9e2d26easm2418097qvo.112.2023.12.03.11.06.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 11:06:29 -0800 (PST) Date: Sun, 3 Dec 2023 19:06:15 +0000 From: Dmitry Torokhov To: Haoran Liu Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ipaq-micro-keys: Add error handling for devm_kmemdup Message-ID: References: <20231203164653.38983-1-liuhaoran14@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231203164653.38983-1-liuhaoran14@163.com> X-Spam-Status: No, score=0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 03 Dec 2023 11:10:11 -0800 (PST) On Sun, Dec 03, 2023 at 08:46:53AM -0800, Haoran Liu wrote: > Check the return value of i2c_add_adapter. Static analysis revealed that > the function did not properly handle potential failures of > i2c_add_adapter, which could lead to partial initialization of the I2C > adapter and unstable operation. > > Signed-off-by: Haoran Liu Applied, thank you. -- Dmitry