Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp836631pxb; Mon, 25 Oct 2021 20:12:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZRm83BFdt/lKXLz5026igela5ZIo11+Lpp0x3z6AxVHKROf3Y6wdPBbxma6O9KkV2iKjD X-Received: by 2002:a05:6402:26d6:: with SMTP id x22mr2096238edd.165.1635217960454; Mon, 25 Oct 2021 20:12:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635217960; cv=none; d=google.com; s=arc-20160816; b=zkO+oDsLVti18XLnDytPnFuR/8j9E3j0DNEFwVXr3kgkzavkzxhbqcF7M3fQhkDryr sh8N9lh9NWfvE45YYNjcHsj3LPYJKtHIqjxoU4CVDcu8GtUVBj53qB2OtznjW/6vZQ/4 9pcial2G8OHhjIDpGWEAopl3bo71Si9AHVs8SlpJ4UZ2Lla0+W9hPWR22xVGVHwuCDpO pOkZiIZMlEXwDoQLxdB0TbaUR67/GO89YQsrO5dAYSuwOyuKdpf+TzoeyWuwA2YZG3yq 62i6y03hDpqM6wtJTR5mC28UIzwqd8DAauyAsGGnXlPYh0jthilFljvh4O4gfJ3o1vhy hEvw== 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=FVNHzgpRJHqYjldy5FAUg1eLIzvHnEuecgAjYnV10E0=; b=Q4RGrNgo4byidPUnz4HagKdrUyTBN8g7NblzTyOuwwJ3m4IlfmJPFP3WL3DDBE3Tby N7yd8ygRuh7Av+gQY3cPO3zUsMUy1hnf3ekb+vihc+y9MI5jrpE1v+5D928Ey9ATX7Q4 /HL6e1lGSANu8JQGSnP1X073KMTYDPRN4VnjCnFCm8PJaKvs4jvbm++cy5H3IWiwPGBe O1z9ULBbFY7N3N9hyWxH3NXxzki1E7ngaHLGZlhwHJgbUfcENQWM4LXmySdhBiZpGxwV CX05Ki817QWt43XxgNn8qEIavspBxt7SislRfY7iKuOcmPcqISmJPM1gdeyhR1Dkq9dF d4bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WXAw0TAd; 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 f2si32318624edl.338.2021.10.25.20.12.15; Mon, 25 Oct 2021 20:12:40 -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=WXAw0TAd; 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 S235198AbhJYXkg (ORCPT + 99 others); Mon, 25 Oct 2021 19:40:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233864AbhJYXkf (ORCPT ); Mon, 25 Oct 2021 19:40:35 -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 9F430C061745 for ; Mon, 25 Oct 2021 16:38:12 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id 127so192390pfu.1 for ; Mon, 25 Oct 2021 16:38:12 -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=FVNHzgpRJHqYjldy5FAUg1eLIzvHnEuecgAjYnV10E0=; b=WXAw0TAdf6nkxfq+YBDGb9BESm4cbE1kM2UImsCfsIOqH02O8uGLwWdv5e3cC+HUwg 6s3vYcfvg/R0OiP3iyHgd6qGxVEJiLHjwQQscsGyhw2/DosoUw9FD7wk8HmgQ9j8SZyt EIMwIlH/kAHLTFvamV08RnRlLLcthRyNM7nZQ= 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=FVNHzgpRJHqYjldy5FAUg1eLIzvHnEuecgAjYnV10E0=; b=7T1HphUbJqICq9ONtjQVPr2vmTnUMxRioNYS92CF94lUdLXjBbYwcksO9+irsZw99v w7DL8ZbrzZFkQ6rQaCFmg9/sTxHg4+NOfzxq+cuf4Kb8i6KH+ABCKlRHfVN+oHt/33H4 JDLp8PrWfQI0DFlS1fEL5fUX8qnJFu0q4/dNnyQa0ngD6plESuykAyMyLtQOhDM1nh9w QckK+3DyuvX69qhiX+z3bzpeW02MD0cgt0+iISy6m8rMng6hDbWPzNLoXANiNTAh38kH sya1XhvHrBoDQ6aqGx+VuPQi3dtS0ynV3XR5INoWE3nEAkpsl0U6uk4Lwqt8ZiLivSmf QkeQ== X-Gm-Message-State: AOAM530SXpGqAPtOmC8453CHs+cQBNmpidxFG9eK46mCknVm39JEYw80 CWdejNrkIxAUMPnBwCuG8ygJeA== X-Received: by 2002:aa7:9043:0:b0:44d:13c7:14a5 with SMTP id n3-20020aa79043000000b0044d13c714a5mr21801830pfo.86.1635205092215; Mon, 25 Oct 2021 16:38:12 -0700 (PDT) Received: from sujitka-glaptop.hsd1.ca.comcast.net ([2601:646:8e00:b2f0:eac2:13a5:2214:747b]) by smtp.gmail.com with ESMTPSA id gn1sm5954453pjb.34.2021.10.25.16.38.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 16:38:11 -0700 (PDT) From: Sujit Kautkar To: Andy Gross , Ohad Ben-Cohen Cc: Stephen Boyd , Sibi Sankar , Bjorn Andersson , Sujit Kautkar , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH v2 0/2] Fix two kernel warnings in glink driver Date: Mon, 25 Oct 2021 16:37:50 -0700 Message-Id: <20211025233751.1777479-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 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 | 5 ++++- drivers/rpmsg/rpmsg_char.c | 5 ++--- 2 files changed, 6 insertions(+), 4 deletions(-) -- 2.31.0