Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2608271pxv; Sat, 24 Jul 2021 23:42:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyX3OvJvGhdcDsfKZ6FaTk1fLPjvJf0HZGgFd5/TozZl/J51kapw5Wa/cs2NILKwJhPRBoh X-Received: by 2002:a17:906:17c4:: with SMTP id u4mr12116864eje.481.1627195330597; Sat, 24 Jul 2021 23:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627195330; cv=none; d=google.com; s=arc-20160816; b=O+58n1hERup5R/mG8LsgRbgcnygXoxKiHb/yGlozkpo4J5b32hxlR0FvjqorJY2WYP xQraog3vrtId5HTmiI91jhjpvameHo/BBWlH0FWXfFJ6nMkC2Agnc0wHbpg8XVCoWNR7 CEBY/HuOtTtBPa4oXd+6v4cJeCjksGuKJOHzLXHDzfbpzKCtpAuc30ynRWlQVdwYKiwI mQWGr9GmQYMM5eld4/4KgC2/fa6YEQ8tiZ7akS5pjsZgxX6QX9/vNuDjGpTOVsj4qlx1 Jn5KKRxvz+OMXD3M56e1uutT6mRZa5aVTRTB5Qgwab9gshxV3Z2kuXc9eOTeDAP95iVH Y0ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OwGTaFDFrjidOs3L9+pS5jm4ED5BS4+FMWyoDZH657o=; b=0a62vnUYXB4EMFvRbzc6rqNJrXmvcgepfuKgcH66xB3bKdqf5NOOTPCAk99kyOu9Ie nhEO+iKzLC8hxHKE70nu9Gab3By3qiVV6Lw34Iu36ZS6SKVje5peHu8KASgWRoMM6qC6 APjCkeowwEQgwk9+IR+n5u9r+Sex65s5U6sBqabkdOIX95t78Th5xyrZavDukAnociLc VRE4fuEKnWl8XZxNN0AX0fGGu7O4D/V/JQkqxYUEEqG0myC3WGakJdRAw/8L83CX4X0r 6F8v2DipD/6mJ+MTjeZ8ksAnJLRP5r3Ewv3t3ufhf6DmpgT39XuR5Ya1G8s/Q69wVc3Y nc/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y37Ya1Va; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si14508817edt.264.2021.07.24.23.41.47; Sat, 24 Jul 2021 23:42:10 -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=@linuxfoundation.org header.s=korg header.b=y37Ya1Va; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230312AbhGYF7t (ORCPT + 99 others); Sun, 25 Jul 2021 01:59:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:44988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbhGYF7s (ORCPT ); Sun, 25 Jul 2021 01:59:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B19DD608FE; Sun, 25 Jul 2021 06:40:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627195219; bh=OwGTaFDFrjidOs3L9+pS5jm4ED5BS4+FMWyoDZH657o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=y37Ya1Var41r5KlsN0PXt5TY7QHFfkahYvdidxxvO08hin1y5sPUzZ7SuRNtjmz6a TbHJDknj4f0PFuoAhfO8l1pulMNz95KW1UQPAzZmiR8OPc6soq+dXd9hNdiTCRoZ/B 1jAtgG9vi/nT8eBC0gN5rfR2Jbva7RNRAw85iij8= Date: Sun, 25 Jul 2021 08:40:14 +0200 From: Greg KH To: Salah Triki Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usb: stkwebcam: update the reference count of the usb device structure Message-ID: References: <20210724195831.GA509821@pc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210724195831.GA509821@pc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 24, 2021 at 08:58:31PM +0100, Salah Triki wrote: > Use usb_get_dev() and usb_put_dev() in order to update the reference > count of the usb device structure. Why?