lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2024100935-resonate-aneurism-b330@gregkh>
Date: Wed, 9 Oct 2024 14:47:53 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Guan-Yu Lin <guanyulin@...gle.com>
Cc: Thinh.Nguyen@...opsys.com, mathias.nyman@...el.com,
	stern@...land.harvard.edu, elder@...nel.org, oneukum@...e.com,
	yajun.deng@...ux.dev, dianders@...omium.org, kekrby@...il.com,
	perex@...ex.cz, tiwai@...e.com, tj@...nel.org,
	stanley_chang@...ltek.com, andreyknvl@...il.com,
	christophe.jaillet@...adoo.fr, quic_jjohnson@...cinc.com,
	ricardo@...liere.net, grundler@...omium.org, niko.mauno@...sala.com,
	linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
	linux-sound@...r.kernel.org, badhri@...gle.com,
	albertccwang@...gle.com, quic_wcheng@...cinc.com,
	pumahsu@...gle.com
Subject: Re: [PATCH v4 4/5] xhci: sideband: add api to trace sideband usage

On Wed, Oct 09, 2024 at 05:42:58AM +0000, Guan-Yu Lin wrote:
> --- a/include/linux/usb/hcd.h
> +++ b/include/linux/usb/hcd.h
> @@ -84,6 +84,10 @@ struct usb_hcd {
>  	struct urb		*status_urb;	/* the current status urb */
>  #ifdef CONFIG_PM
>  	struct work_struct	wakeup_work;	/* for remote wakeup */
> +#ifdef CONFIG_USB_XHCI_SIDEBAND
> +	/* Number of active sideband accessing the host controller. */
> +	atomic_t		sb_usage_count;

It's a reference count, use refcount_t please.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ