Message ID | 20221026224640.7542-1-dmitry.osipenko@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp520419wru; Wed, 26 Oct 2022 15:48:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SkFsLsGR/uyLz4Akoo9zPY97BVqXzPrVXsxuWcsAN4ANYsjS3v3xCPh9gBGD1iOkUD+2O X-Received: by 2002:a17:903:22c9:b0:186:5f78:44af with SMTP id y9-20020a17090322c900b001865f7844afmr37420448plg.138.1666824519328; Wed, 26 Oct 2022 15:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666824519; cv=none; d=google.com; s=arc-20160816; b=RRiMiS4xW/cRU+lrU8CtF0/28hAIEn7KlIt8qhtM5NAm3nF5ozSYxhM1VcMJrhyX5f jefssQfipZRRY4l7Q3q2ehRkMmvfoHVbsnXFfCCdoG88dh08uApGcB4nKxSqhKMJ/yVA Uj1jo7tpScvP+0xhkV7c42cSZm2TeP/kAeVmmklkLJRTOVxVi1cVYGnYXp9CqPNF4IWg aTBb4q6yGxLhz93YhF4TTqYZ/kgGsW65tzEudZ77N7d7HUFTgUMG5Xhe158AfUEP2SPm ziihQY2nWn036jRqrAz0zn4hWMRYn3zNRX7PoDzF+qak4AHVewYkPPRvk6W3tD3M+4j1 I7Pg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a170902740800b001709c82ca08si7437856pll.297.2022.10.26.15.48.25; Wed, 26 Oct 2022 15:48:39 -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 <rfc822;pwkd43@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <dmitry.osipenko@collabora.com> To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Sumit Semwal <sumit.semwal@linaro.org>, Thomas Zimmermann <tzimmermann@suse.de>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, noralf@tronnes.org, Dan Carpenter <dan.carpenter@oracle.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747792187534251874?= X-GMAIL-MSGID: =?utf-8?q?1747792187534251874?= |
Series |
Fixes for dma-buf locking issues found by Smatch
|
|
Message
Dmitry Osipenko
Oct. 26, 2022, 10:46 p.m. UTC
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(-)