Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1462833rwi; Wed, 26 Oct 2022 16:02:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4qEVl0nsUgKxSa0YqHBTYo40pNkHhf67yZv4xZy36bgqGGa3QHQ681A93mx1o+HVRWllPe X-Received: by 2002:a17:90b:3b45:b0:20c:2eae:e70 with SMTP id ot5-20020a17090b3b4500b0020c2eae0e70mr6734631pjb.240.1666825342196; Wed, 26 Oct 2022 16:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666825342; cv=none; d=google.com; s=arc-20160816; b=EVY2eLSKolvANqhrf5pyn6GVDQr2LX39B4Saa+6EpCb9nPOyGyN+FV4x7OWVdIsFVS oK2a+kJMPPc6jCccfYPQLWVqb/kQDM557MgfQWWj/hUiAiIZ+H+IcuTZFwBzhWXx5htc XpVxvwgpGjr0n2Brn087xkeIGo0CHH80nGga9vLMeLKhorAHodSlZH0LLo2sEm1zBmVc x70L77OcNSzxnjJuCRE4eOCdyw5wOCr0Xe8hH4z9XF4ALUTnHQuTY41Rm+4p7oVFbZhn uqjwo0UqyyvStj1o2qSKqX43n1+h8lFT4Ahdw/Vd2dveEFt3oBdmxwVYxJe7MVj29hgG d3cw== 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=FgaMJzuVGQdepgicY4nnO9hJyn8+jzW2H12kHjTY5hs=; b=l7G337Ze2bWvpjHdEEg68qZDy+X758KrgYq9LMG1ynGXV3KfToLEBDKfXUu7Zbz0Jg 1r02rBvWjZ7xy1I+NB4FXkQuxM/flUKXvVZcsALT6dATgFJjCYVrR1aUW0u7++1HrTp6 roiM43hHYQvuYqRmQeEFfSREneSGSOOkgVcGucRiI36XCCg6AoXlee6pAdKIChcOkdqy VEhgDmzF1UcIVkx9pQED9mmV2eW3sEGspjhQ6RJl7A79DVWFaUoTFA29zrOMIyuDJ6lN 68hI16ggwee8eIAYyCCadSPLDlrTHRy/jVIUp4Q9BMTSBHzkp0lCtX8vU1bR1nFog3OT iaGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dwpZi68z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6388c1000000b00434bfa4c2d7si7980329pgd.317.2022.10.26.16.02.06; Wed, 26 Oct 2022 16:02:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dwpZi68z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233701AbiJZWrv (ORCPT + 99 others); Wed, 26 Oct 2022 18:47:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233420AbiJZWrg (ORCPT ); Wed, 26 Oct 2022 18:47:36 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5226E5208C for ; Wed, 26 Oct 2022 15:47:22 -0700 (PDT) Received: from dimapc.. (109-252-112-196.nat.spd-mgts.ru [109.252.112.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: dmitry.osipenko) by madras.collabora.co.uk (Postfix) with ESMTPSA id 83AC766025FA; Wed, 26 Oct 2022 23:47:19 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666824440; bh=uz0L9V/MufGQfPQFvGuBTw01sGpXsDlYGwsQzODExM4=; h=From:To:Cc:Subject:Date:From; b=dwpZi68zeMshEPYyX1trG3cZXPZISoztx6rQP8i8XauKBPRc25VG8T5418gG6SAKH FmDbd9+KkcM2gfqZQHuzjOUbgfd6N1iHXHdM9HxgLAb46oCoqdWZf6B1z8LKfe7YMd tkIoG/tfprrlkNOJUiCbZu4NdSAwG1+yfVYIVX5khzWPqF6a1pbk3NKodlIri/nS0K SZErMHh3ihpgO0OiPIH2r0ILp4PxsmdFDqk7kpszBYu+D4aZ+GDigDJvVZqbgQiHOj xOXasHa4fFtJ1d3t+JdMTyvDTvN2pY0WrIji4HsFm7zmC0cysrfbs89kaSQUkWO0im Z34Na5XVxVhUQ== From: Dmitry Osipenko To: Maarten Lankhorst , Maxime Ripard , Sumit Semwal , Thomas Zimmermann , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , noralf@tronnes.org, Dan Carpenter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/2] Fixes for dma-buf locking issues found by Smatch Date: Thu, 27 Oct 2022 01:46:38 +0300 Message-Id: <20221026224640.7542-1-dmitry.osipenko@collabora.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Here are the two patches fixing minor problems introduced by my "dma-buf locking convention" series. Thanks to Dan Carpenter who checked linux-next with Smatch and reported the found issues! Please review/ack, I'll apply the patches to misc-next afterwards. Thanks! Dmitry Osipenko (2): dma-buf: Make locking consistent in dma_buf_detach() drm/gem: Check whether object is NULL in drm_gem_vunmap() drivers/dma-buf/dma-buf.c | 3 ++- drivers/gpu/drm/drm_gem.c | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) -- 2.37.3