Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4825446pxb; Tue, 2 Nov 2021 16:54:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyI0EEXLyo1WCG349/56QykG4GgpiHYl6foOETja9yV42+TjgkuNzrquuJNmcE7rnjTPK+r X-Received: by 2002:a17:906:a851:: with SMTP id dx17mr28185183ejb.484.1635897279275; Tue, 02 Nov 2021 16:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635897279; cv=none; d=google.com; s=arc-20160816; b=mJvcYWMRnJ2uYyYb0wVhgLyVUEg68kxTocccqKlLjwbL3vWqzTFBAK/X1vRrCzgGuG M3ST7OwNnQRhH9Va/MhcO8v+l9Q4SW+Ov94EdMxt1aXm62ksZiNAIxGSblkzR3e55Wr7 nQvZS2VnYqpYK7gWo4Wju6qj9zZWbGfioQOeCRr9yPjhyhx/hFeMbwQ7ssg5IVxtzgGF y/nlMScjMjOXT79QajL2EMQ1C/Mvht3H4fwxVy5Tdd9R0ZLkfgPbJLGvUx+EV1YarZKS Ad2Ko1lkf94uou+jSEZhTM7LxTa+Y+CauwnJu6UhrTf7n3sqq45K5/6mFvDTpGQVX0r/ GU8A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=6UQroqUYGrr3QJudzaw6yU4iYpr07JScEfScZXkT+UQ=; b=vsTOaUEDCjmgLlJkX1Q4hpqyWFQVMQCBE8Dv57wqTSUIxDTAUTkRoevLvYj60Y2k+N 3Fq0pYAeVZQpe/wjDNwRPeDRc3LAZMYDyKLUQaAnVQhuscRJyxJcAsC9oFS9EzuqB5pW 5jc3Y4k6nWEkaZjd9eDwWUlcgVi+PGWIzf8VuqC22mRzerssXYLz5idQsq8hhgCO3apM uIsbUFAXnGkN/o/U6Mx7hQIjV99jilVQ1Sn9fE6JftjwY/CZ9N9Sp3DUElugfnWpEBqg Rze4PNRZN/1AXEzBIWUn9Vwus+vk1Ve1wdWbh++RPXFxCh4sqv8sBdSxuTJ0rGIPhDmh JzVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IPdFYP2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb8si1398308edb.325.2021.11.02.16.54.15; Tue, 02 Nov 2021 16:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IPdFYP2A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230348AbhKBXzA (ORCPT + 99 others); Tue, 2 Nov 2021 19:55:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbhKBXyy (ORCPT ); Tue, 2 Nov 2021 19:54:54 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14DDDC061714 for ; Tue, 2 Nov 2021 16:52:19 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id y20so545549pfi.4 for ; Tue, 02 Nov 2021 16:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6UQroqUYGrr3QJudzaw6yU4iYpr07JScEfScZXkT+UQ=; b=IPdFYP2AyCzzjQhudRVvUZQ+/SAentjIBNjA1o9mRfK1gt1G3CYaffPElFKNIIfcl/ WaDUhR0f+idyQvzNgKaDM+QkWZNGcos34w/J3BBL5DLNMsLwzdjd0f9DFeS0RPWokcDb 1lDYAS3J/VohAT7jV+WaZQa6rHmB52JgEVkqA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6UQroqUYGrr3QJudzaw6yU4iYpr07JScEfScZXkT+UQ=; b=5m15ZGpOzcSk+7MrGUUxFDOWJ7jDV+f5bOsiJvX20OG2fVqk5mLrj2huvV1tWgnlL/ ItRufKI079Bn5ouOvn+9ujNVZ2BH1mLSCdB/8BbY+iNWzMopEEX1+9xZUzev9+BBc8nh 7VjtJ2ynI4/yidzDcf1slzsWmptXAl3RtPRFW4z7/QFeaH8v8sJ95jYm2g6Jv35q1V9A QsHbe/K1gwXYRmoUZezR8pvQqI1BZ8k6+U8sO8Yj1YdAYXqkZuFOqF94oDvR9IGaL3Wm 99zK5G6BojLnMoNWm+b4Yx2BTL4lwQPGr31OfX8xxOsN03yj8kducs2Dkqk4tqeJW7dk gODQ== X-Gm-Message-State: AOAM533nbul6q1YO0uoKe0XJQJfOoCOnWOW04xqIWhjOyr/uUxi9T8aK uB9C3ohoihPe7E3fRA9W2z/P5w== X-Received: by 2002:a05:6a00:8c7:b0:44c:a7f9:d8d1 with SMTP id s7-20020a056a0008c700b0044ca7f9d8d1mr39918248pfu.49.1635897138571; Tue, 02 Nov 2021 16:52:18 -0700 (PDT) Received: from sujitka-glaptop.hsd1.ca.comcast.net ([2601:646:8e00:b2f0:c31d:1b47:2691:7a67]) by smtp.gmail.com with ESMTPSA id z73sm176381pgz.23.2021.11.02.16.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Nov 2021 16:52:18 -0700 (PDT) From: Sujit Kautkar To: Andy Gross , Ohad Ben-Cohen Cc: Bjorn Andersson , Sibi Sankar , Matthias Kaehlcke , Stephen Boyd , Sujit Kautkar , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v3 0/2] Fix two kernel warnings in glink driver Date: Tue, 2 Nov 2021 16:51:47 -0700 Message-Id: <20211102235147.872921-1-sujitka@chromium.org> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These changes addresses kernel warnings which shows up after enabling debug kernel. First one fixes use-after-free warning and second fixes warning by updating cdev APIs Changes in v3: - Clear ept pointers in patch 1 - Remove error check in patch 2 Changes in v2: - Fix typo in commit message Sujit Kautkar (2): rpmsg: glink: Fix use-after-free in qcom_glink_rpdev_release() rpmsg: glink: Update cdev add/del API in rpmsg_ctrldev_release_device() drivers/rpmsg/qcom_glink_native.c | 12 ++++++++++-- drivers/rpmsg/rpmsg_char.c | 10 ++-------- 2 files changed, 12 insertions(+), 10 deletions(-) -- 2.31.0