From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 145F7C7618B for ; Wed, 24 Jul 2019 13:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DE1E822ADA for ; Wed, 24 Jul 2019 13:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfGXNdv (ORCPT ); Wed, 24 Jul 2019 09:33:51 -0400 Received: from lb1-smtp-cloud9.xs4all.net ([194.109.24.22]:47537 "EHLO lb1-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725882AbfGXNdv (ORCPT ); Wed, 24 Jul 2019 09:33:51 -0400 Received: from [192.168.2.10] ([46.9.232.237]) by smtp-cloud9.xs4all.net with ESMTPA id qHOshIMVV0QvJqHOvh9XWQ; Wed, 24 Jul 2019 15:33:49 +0200 Subject: Re: tw686x driver (continued) To: =?UTF-8?Q?Mark_Balan=c3=a7ian?= Cc: Ezequiel Garcia , linux-media@vger.kernel.org References: <84ab52c4-9ea7-c526-c628-47d678ccf926@gmail.com> <2586e6ca-da28-ac87-35dc-dfa6ae66f67d@gmail.com> <35ebabef-46cc-f4d0-3e88-3d8f4243c685@gmail.com> <4C82E321-DCA7-4627-880D-0CFD6FB74972@gmail.com> From: Hans Verkuil Message-ID: Date: Wed, 24 Jul 2019 15:33:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <4C82E321-DCA7-4627-880D-0CFD6FB74972@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfAHrzp6S/bk80YdSv188Cx9XLDnDSOfKfC765+zjf8z1Z5rhvbp+UyRkZb4Ko7yjB7clIp4C383N0O16PsOqboXNoUmQdhCgxzzbNqYHKQhmmtKbr/qc W0EemRgJk8unE7rJu2tdU2cS2inIPzjqQk9DNdMIWRjiCdBAPg+L8F4Aruh3r2CnUyHvwkHQGS5lQGuSxbARI2EG1btqmXYlNUamJCvMpjnCY9pch2C2OvsN NN4YXPCubrMVtucMrQx/pg== Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On 7/24/19 3:31 PM, Mark Balançian wrote: > On Jul 24, 2019, at 6:08 AM, Hans Verkuil > wrote: >> >> What tw686x_video_free() does really should be done in the release function >> of the video_device: vdev->release is currently set to video_device_release, >> but that should be a custom function that calls dev->dma_ops->free. > > Hello all, > > There just appears some possible race condition as detected by the tool my supervisor has given me access to. I have to write a patch for > the linux kernel as an assignment. By the above, does this mean I may please write the custom function that calls dev->dma_ops->free to > replace the vdev->release = video_device_release line? Certainly. That's definitely a sensible change. Regards, Hans