Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp821951pxb; Mon, 25 Oct 2021 19:51:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNQuZWmrdhDaF0/1aBIaX/7xLZy2Z9V3uVuYJ8Ggt2sBvDnuf9X/x2ZeyaUSu8szOCOaOj X-Received: by 2002:a62:b606:0:b0:47b:e32f:9ca with SMTP id j6-20020a62b606000000b0047be32f09camr14568349pff.57.1635216667989; Mon, 25 Oct 2021 19:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635216667; cv=none; d=google.com; s=arc-20160816; b=woajojqN9CcA4QzPUpqhnICJTqu6pVbS/JA1WYLFQ1TrcsA+P943ghsc9XgBxwUmro q4zVicZG3vr4gMc7zyCsa+Xmk9NIfO7ssgXwBNwNkSbftEPDXjf7IgJ+q30Vq2sZNSLz /OTCU1MB1CavJHEbozu76x4T6rbOj34DEu/WmLXelCMEChDUxvdPFQGb0FODuHSd2AeT VE3u45PR1GdKHjxvGUlKUW3TKQ+JYw18WzF0w/n2d8n67SRQAq6DQuf2s7kFLwCRzqII /xKzTj+POwORW8BjwgM2EMlBldcgTgfqVCsoJ22r8HsePkzk7DU1AemKU0Vn1oaOcRCI U8FQ== 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=1BCxRPsSBo8R0jXRDbha92kpcMi7WqIaXL64kHlxgtM=; b=j6OrN8BSbT/dQeHAoK5wN8RiTgje2AD+9Q3yhdMGBjIaVXWsGqdvNt/nGZ9dmguMkR czg5kdy+fN2xe7bZQaRk6TKLvJ2xBFIy+3M5xaZEpkS89kdEsKtyyxunSqCPvo8LAg6r LU74yqXd2SRI65PhJ9lTeEjJKiKXeEvzA8Ml6WAwpGemioFqhvJfJCh1HQd/LZJ4pN+Z ShJ255G4LVs+WNfh/GfTbZITbJrjRgvmq8qAQgPAl4SYUQs+9yZkH+jJ/MRUy0a9Qm1o ycK3HbknU7pH8KcLMrdL4g//jXSESRZs2kfJ8WCZDTH1vn1yXEYFroJE3L3JFolFQyzV Kosw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="MgD/Ennd"; 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 c20si12163215pgw.111.2021.10.25.19.50.43; Mon, 25 Oct 2021 19:51:07 -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="MgD/Ennd"; 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 S233160AbhJYX1h (ORCPT + 99 others); Mon, 25 Oct 2021 19:27:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232178AbhJYX1g (ORCPT ); Mon, 25 Oct 2021 19:27:36 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A633C061767 for ; Mon, 25 Oct 2021 16:25:13 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id f8so2185879plo.12 for ; Mon, 25 Oct 2021 16:25:13 -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=1BCxRPsSBo8R0jXRDbha92kpcMi7WqIaXL64kHlxgtM=; b=MgD/EnndEWPOuol0R3MjGsSXiZA88aSW/6PB++3IIkp/se7TI+seoHpw8euen4fq37 PxUI8rRnp8WHyvweJ4+tWP/IFhyLARQvuL9v5UL3SPm56HkkwN2K4l97zS2KkxT5udnG UD3ZAartUjvEn8BuTvvgJo+O7NXHWz8WciQ+0= 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=1BCxRPsSBo8R0jXRDbha92kpcMi7WqIaXL64kHlxgtM=; b=5DotNEQbYUNEMrHiTdVoTBxM9b2ZtWCCTdW0PQKup9T9fEdlqskjmdPo/OGWaegzWy xCP33jzE4RurOVrZtOQvASmHcs6z/93MpxnkdqtBrfWlBgzythl+FQBxVE3ktS8c8tlW RTJwvXTOBuWnnSKEI/n0S+EQWU3RF/GBPIAAcrXzp7xcOomHKeNPEzA8XQzj9gKcxK8e DMjBd59ma/BaZzYXJ+13nDUdIqSsIZUAAeQFf30mSpq0DxtX9CqfbBdv5OQU0CD7mxEi pxmBjbvLyFYAlyhzY4YIU9ebQY9jQUdMfXCq/bRm5ajZezZ8aLzuyF3g4ZSulQAIfi6B C2BQ== X-Gm-Message-State: AOAM533/Di9aYNBp4x2wiIi3m2NR0MW7M6kg9opN0VRIdqfDK7YCmkks hwSiQ64xb9fQUSp4gv9xEPJUow== X-Received: by 2002:a17:902:e5c6:b0:140:7e1:fa12 with SMTP id u6-20020a170902e5c600b0014007e1fa12mr19237152plf.35.1635204312783; Mon, 25 Oct 2021 16:25: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 ob5sm20891535pjb.30.2021.10.25.16.25.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Oct 2021 16:25:12 -0700 (PDT) From: Sujit Kautkar To: Andy Gross , Ohad Ben-Cohen Cc: Sibi Sankar , Bjorn Andersson , Stephen Boyd , Sujit Kautkar , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: [PATCH 0/2] Fix two kernel warnings in glink driver Date: Mon, 25 Oct 2021 16:24:58 -0700 Message-Id: <20211025232500.1775231-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 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